Class MSession
Namespace: CmlLib.Core.Auth
Assembly: CmlLib.Core.Commons.dll
public class MSession
Inheritance
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
ClientToken
[JsonPropertyName("clientToken")]
public string? ClientToken { get; set; }
Property Value
UUID
[JsonPropertyName("uuid")]
public string? UUID { get; set; }
Property Value
UserType
[JsonPropertyName("userType")]
public string? UserType { get; set; }
Property Value
Username
[JsonPropertyName("username")]
public string? Username { get; set; }
Property Value
Xuid
[JsonPropertyName("xuid")]
public string? Xuid { get; set; }
Property Value
Methods
CheckIsValid()
public bool CheckIsValid()
Returns
CreateLegacyOfflineSession(string)
public static MSession CreateLegacyOfflineSession(string username)
Parameters
username string
Returns
CreateOfflineSession(string)
public static MSession CreateOfflineSession(string username)
Parameters
username string
Returns
GetOfflineSession(string)
[Obsolete("Use CreateOfflineSession(\"username\") instead.")]
public static MSession GetOfflineSession(string username)
Parameters
username string