C# Class withSIX.Mini.Infra.Data.Services.NetworkContentSyncer.CollectionSyncer

Datei anzeigen Open project: SIXNetworks/withSIX.Desktop

Public Methods

Method Description
CollectionSyncer ( IDbContextLocator locator, NetworkContentSyncer networkContentSyncer, IW6Api api ) : System
DownloadCollections ( IEnumerable gamesWithCollections ) : Task>
GetCollections ( System.Guid gameId, IReadOnlyCollection collectionIds ) : Task>
SyncCollections ( IReadOnlyCollection collections, bool countCheck = true ) : Task

Private Methods

Method Description
BuildDependencyTree ( Game game, List dependencies, SixRepoModDto>.KeyValuePair repoContent, IReadOnlyCollection customRepos ) : Task
ConvertToContentOrLocal ( CollectionVersionDependencyModel x, IHaveGameId col, Game game ) : Content
ConvertToGroupOrRepoContent ( CollectionVersionDependencyModel x, Collection col, IReadOnlyCollection customRepos, IEnumerable groupContent, Game game ) : Task
GetContentSpec ( List collections, CollectionVersionDependencyModel todoCols, CollectionVersionDependencyModel ec, IEnumerable cols, CancellationToken ct ) : Task
GetDependencyTree ( SixRepoModDto>.KeyValuePair repoContent, IReadOnlyCollection customRepos, Game game ) : Task>
GetGroupContent ( Content col ) : Task>
GetRepositories ( IHaveRepositories col ) : Task
GetUserId ( ) : Task
HandleContent ( NetworkCollection col, CollectionModelWithLatestVersion c, CancellationToken ct, List collections = null ) : Task
HandleRepoContent ( CollectionVersionDependencyModel x, Collection col, IReadOnlyCollection customRepos, Game game ) : Task
MapCollection ( CollectionModelWithLatestVersion rc, CancellationToken ct, List collections = null ) : Task
MapExistingCollection ( CollectionModelWithLatestVersion rc, SubscribedCollection collection, CancellationToken ct ) : Task
ProcessEmbeddedCollection ( IEnumerable cols, CollectionVersionDependencyModel ec, List collections, CancellationToken ct ) : Task
ProcessEmbeddedCollections ( CollectionModelWithLatestVersion c, List collections, CancellationToken ct ) : Task>
ProcessMods ( NetworkCollection col, CollectionModelWithLatestVersion c, Game game ) : Task>
RetrieveCollections ( System.Guid gameId, IEnumerable colIds, CancellationToken ct ) : Task>
SynchronizeContent ( Game game, IEnumerable packageNames ) : Task

Method Details

CollectionSyncer() public method

public CollectionSyncer ( IDbContextLocator locator, NetworkContentSyncer networkContentSyncer, IW6Api api ) : System
locator IDbContextLocator
networkContentSyncer NetworkContentSyncer
api IW6Api
return System

DownloadCollections() public method

public DownloadCollections ( IEnumerable gamesWithCollections ) : Task>
gamesWithCollections IEnumerable
return Task>

GetCollections() public method

public GetCollections ( System.Guid gameId, IReadOnlyCollection collectionIds ) : Task>
gameId System.Guid
collectionIds IReadOnlyCollection
return Task>

SyncCollections() public method

public SyncCollections ( IReadOnlyCollection collections, bool countCheck = true ) : Task
collections IReadOnlyCollection
countCheck bool
return Task