Table of Contents

Class MojangLauncherAccount

Namespace: CmlLib.Core.Auth.Microsoft.MojangLauncher
Assembly: CmlLib.Core.Auth.Microsoft.MojangLauncher.dll

public record MojangLauncherAccount : IEquatable<MojangLauncherAccount>

Inheritance

objectMojangLauncherAccount

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

string?

AccessTokenExpiresAt

[JsonPropertyName("accessTokenExpiresAt")]
public string? AccessTokenExpiresAt { get; init; }

Property Value

string?

Avatar

[JsonPropertyName("avatar")]
public string? Avatar { get; init; }

Property Value

string?

LocalId

[JsonPropertyName("localId")]
public string? LocalId { get; init; }

Property Value

string?

MinecraftProfile

[JsonPropertyName("minecraftProfile")]
public MojangLauncherMinecraftProfile? MinecraftProfile { get; init; }

Property Value

MojangLauncherMinecraftProfile?

RemoteId

[JsonPropertyName("remoteId")]
public string? RemoteId { get; init; }

Property Value

string?

Type

[JsonPropertyName("type")]
public string? Type { get; init; }

Property Value

string?

Username

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

Property Value

string?

Methods

ReadFile(string)

public static IReadOnlyList<MojangLauncherAccount> ReadFile(string path)

Parameters

path string

Returns

IReadOnlyList<MojangLauncherAccount>