Class MojangLauncherAccount
Namespace: CmlLib.Core.Auth.Microsoft.MojangLauncher
Assembly: CmlLib.Core.Auth.Microsoft.MojangLauncher.dll
public record MojangLauncherAccount : IEquatable<MojangLauncherAccount>
Inheritance
object ← MojangLauncherAccount
Implements
IEquatable<MojangLauncherAccount>
Inherited Members
object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object, object), object.ToString()
Constructors
MojangLauncherAccount(string?, string?, string?, string?, MojangLauncherMinecraftProfile?, string?, string?, string?)
public MojangLauncherAccount(string? AccessToken, string? AccessTokenExpiresAt, string? Avatar, string? LocalId, MojangLauncherMinecraftProfile? MinecraftProfile, string? RemoteId, string? Type, string? Username)
Parameters
AccessToken string?
AccessTokenExpiresAt string?
Avatar string?
LocalId string?
MinecraftProfile MojangLauncherMinecraftProfile?
RemoteId string?
Type string?
Username string?
Properties
AccessToken
[JsonPropertyName("accessToken")]
public string? AccessToken { get; init; }
Property Value
AccessTokenExpiresAt
[JsonPropertyName("accessTokenExpiresAt")]
public string? AccessTokenExpiresAt { get; init; }
Property Value
Avatar
[JsonPropertyName("avatar")]
public string? Avatar { get; init; }
Property Value
LocalId
[JsonPropertyName("localId")]
public string? LocalId { get; init; }
Property Value
MinecraftProfile
[JsonPropertyName("minecraftProfile")]
public MojangLauncherMinecraftProfile? MinecraftProfile { get; init; }
Property Value
MojangLauncherMinecraftProfile?
RemoteId
[JsonPropertyName("remoteId")]
public string? RemoteId { get; init; }
Property Value
Type
[JsonPropertyName("type")]
public string? Type { get; init; }
Property Value
Username
[JsonPropertyName("username")]
public string? Username { get; init; }
Property Value
Methods
ReadFile(string)
public static IReadOnlyList<MojangLauncherAccount> ReadFile(string path)
Parameters
path string