Table of Contents

Class MSession

Namespace: CmlLib.Core.Auth
Assembly: CmlLib.Core.Commons.dll

public class MSession

Inheritance

objectMSession

Inherited Members

object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object, object), object.ToString()

Constructors

MSession()

public MSession()

MSession(string?, string?, string?)

public MSession(string? username, string? accessToken, string? uuid)

Parameters

username string?

accessToken string?

uuid string?

Properties

AccessToken

[JsonPropertyName("session")]
public string? AccessToken { get; set; }

Property Value

string?

ClientToken

[JsonPropertyName("clientToken")]
public string? ClientToken { get; set; }

Property Value

string?

UUID

[JsonPropertyName("uuid")]
public string? UUID { get; set; }

Property Value

string?

UserType

[JsonPropertyName("userType")]
public string? UserType { get; set; }

Property Value

string?

Username

[JsonPropertyName("username")]
public string? Username { get; set; }

Property Value

string?

Xuid

[JsonPropertyName("xuid")]
public string? Xuid { get; set; }

Property Value

string?

Methods

CheckIsValid()

public bool CheckIsValid()

Returns

bool

CreateLegacyOfflineSession(string)

public static MSession CreateLegacyOfflineSession(string username)

Parameters

username string

Returns

MSession

CreateOfflineSession(string)

public static MSession CreateOfflineSession(string username)

Parameters

username string

Returns

MSession

GetOfflineSession(string)

[Obsolete("Use CreateOfflineSession(\"username\") instead.")]
public static MSession GetOfflineSession(string username)

Parameters

username string

Returns

MSession