C# Класс ParkitectNexus.Data.Web.API.ParkitectNexusAPI

Represents the ParkitectNexus API.
Наследование: IParkitectNexusAPI
Показать файл Открыть проект

Открытые методы

Метод Описание
GetAsset ( string id ) : Task

Gets the asset with the specified identifier.

GetRequiredModIdentifiers ( ) : Task

Gets the identifiers of the required mods.

GetSubscriptions ( string authKey ) : Task

Gets the subscriptions of the authenticated user.

GetUserInfo ( string authKey ) : Task

Gets user info of the authenticated user.

ParkitectNexusAPI ( IWebsite website, INexusWebClientFactory webClientFactory, ILogger log ) : System

Initializes a new instance of the ParkitectNexusAPI class.

RegisterDownload ( string id ) : void

Registers a download for the asset with the specified identifier.

Описание методов

GetAsset() публичный Метод

Gets the asset with the specified identifier.
public GetAsset ( string id ) : Task
id string The identifier.
Результат Task

GetRequiredModIdentifiers() публичный Метод

Gets the identifiers of the required mods.
public GetRequiredModIdentifiers ( ) : Task
Результат Task

GetSubscriptions() публичный Метод

Gets the subscriptions of the authenticated user.
public GetSubscriptions ( string authKey ) : Task
authKey string The authentication key.
Результат Task

GetUserInfo() публичный Метод

Gets user info of the authenticated user.
public GetUserInfo ( string authKey ) : Task
authKey string The authentication key.
Результат Task

ParkitectNexusAPI() публичный Метод

Initializes a new instance of the ParkitectNexusAPI class.
website or webClientFactory is null.
public ParkitectNexusAPI ( IWebsite website, INexusWebClientFactory webClientFactory, ILogger log ) : System
website IWebsite The website.
webClientFactory INexusWebClientFactory The web client factory.
log ILogger
Результат System

RegisterDownload() публичный Метод

Registers a download for the asset with the specified identifier.
public RegisterDownload ( string id ) : void
id string The identifier.
Результат void