Table of Contents

Class JsonXboxGameAccountManager

Namespace: XboxAuthNet.Game.Accounts
Assembly: XboxAuthNet.Game.dll

public class JsonXboxGameAccountManager : IXboxGameAccountManager

Inheritance

objectJsonXboxGameAccountManager

Implements

IXboxGameAccountManager

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

JsonSerializerOptions

Methods

ClearAccounts()

public void ClearAccounts()

GetAccounts()

public XboxGameAccountCollection GetAccounts()

Returns

XboxGameAccountCollection

GetDefaultAccount()

public IXboxGameAccount GetDefaultAccount()

Returns

IXboxGameAccount

NewAccount()

public IXboxGameAccount NewAccount()

Returns

IXboxGameAccount

SaveAccounts()

public void SaveAccounts()