public void GenerateCollection(CollectionGeneratorConfiguration configuration) { if (_userTopGenerator == null) { _userTopGenerator = new UserTopGenerator(configuration.ApiKey, _loadedBeatmaps); } if (_processingThread == null || !_processingThread.IsAlive) { _processingThread = new Thread(() => { Collections = _userTopGenerator.GetPlayersCollections(configuration, Log); }); _processingThread.Start(); } }
public string CreateCollectionName(ApiScore score, string username, string collectionNameFormat) { return(UserTopGenerator.CreateCollectionName(score, username, collectionNameFormat)); }