Class JsonXboxGameAccountManager
Namespace: XboxAuthNet.Game.Accounts
Assembly: XboxAuthNet.Game.dll
public class JsonXboxGameAccountManager : IXboxGameAccountManager
Inheritance
object ← JsonXboxGameAccountManager
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
JsonXboxGameAccountManager(string)
public JsonXboxGameAccountManager(string filePath)
Parameters
filePath string
JsonXboxGameAccountManager(string, Func<ISessionStorage, IXboxGameAccount>, JsonSerializerOptions?)
public JsonXboxGameAccountManager(string filePath, Func<ISessionStorage, IXboxGameAccount> converter, JsonSerializerOptions? jsonOptions)
Parameters
filePath string
converter Func<ISessionStorage, IXboxGameAccount>
jsonOptions JsonSerializerOptions?
JsonXboxGameAccountManager(IJsonStorage, Func<ISessionStorage, IXboxGameAccount>, JsonSerializerOptions?)
public JsonXboxGameAccountManager(IJsonStorage storage, Func<ISessionStorage, IXboxGameAccount> converter, JsonSerializerOptions? jsonOptions)
Parameters
storage IJsonStorage
converter Func<ISessionStorage, IXboxGameAccount>
jsonOptions JsonSerializerOptions?
Fields
DefaultSerializerOption
public static readonly JsonSerializerOptions DefaultSerializerOption
Field Value
Methods
ClearAccounts()
public void ClearAccounts()
GetAccounts()
public XboxGameAccountCollection GetAccounts()
Returns
GetDefaultAccount()
public IXboxGameAccount GetDefaultAccount()
Returns
NewAccount()
public IXboxGameAccount NewAccount()
Returns
SaveAccounts()
public void SaveAccounts()