C# 클래스 ParkitectNexus.Data.Web.API.ParkitectNexusAPI

Represents the ParkitectNexus API.
상속: IParkitectNexusAPI
파일 보기 프로젝트 열기: ParkitectNexus/ParkitectNexusClient

공개 메소드들

메소드 설명
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