C# Class ParkitectNexus.Data.Assets.RemoteAssetRepository

Represents the online parkitect asset storage.
Inheritance: IRemoteAssetRepository
Mostra file Open project: ParkitectNexus/ParkitectNexusClient

Public Methods

Method Description
DownloadAsset ( ApiAsset asset ) : Task

Downloads the asset.

GetLatestModTag ( IModAsset asset ) : Task

Gets the latest mod tag.

RemoteAssetRepository ( ILogger logger, IWebsite website, INexusWebClientFactory webClientFactory ) : System

Private Methods

Method Description
ResolveDownloadInfo ( ApiAsset asset ) : DownloadInfo

Method Details

DownloadAsset() public method

Downloads the asset.
the specified asset id is invalid
public DownloadAsset ( ApiAsset asset ) : Task
asset ParkitectNexus.Data.Web.API.ApiAsset The asset.
return Task

GetLatestModTag() public method

Gets the latest mod tag.
public GetLatestModTag ( IModAsset asset ) : Task
asset IModAsset The asset.
return Task

RemoteAssetRepository() public method

public RemoteAssetRepository ( ILogger logger, IWebsite website, INexusWebClientFactory webClientFactory ) : System
logger ILogger
website IWebsite
webClientFactory INexusWebClientFactory
return System