Class MojangJsonVersionLoader
Namespace: CmlLib.Core.VersionLoader
Assembly: CmlLib.Core.dll
public class MojangJsonVersionLoader : IVersionLoader
Inheritance
object ← MojangJsonVersionLoader
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
MojangJsonVersionLoader(HttpClient)
public MojangJsonVersionLoader(HttpClient httpClient)
Parameters
httpClient HttpClient
MojangJsonVersionLoader(HttpClient, string)
public MojangJsonVersionLoader(HttpClient httpClient, string endpoint)
Parameters
httpClient HttpClient
endpoint string
Methods
GetManifestAsync(CancellationToken)
public Task<JsonVersionManifestModel?> GetManifestAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken CancellationToken
Returns
Task<JsonVersionManifestModel?>
GetVersionMetadatasAsync(CancellationToken)
public ValueTask<VersionMetadataCollection> GetVersionMetadatasAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken CancellationToken