private Task <IReadOnlyList <JToken> > QueryApiForJewelsAsync() { string[] tables = { ItemTableName, JewelTableName }; var where = GetWhereClause(JewelClass); var joinOn = $"{ItemTableName}.{PageName}={JewelTableName}.{PageName}"; return(WikiApiAccessor.CargoQueryAsync(tables, JewelFields, where, joinOn)); }
private Task <IReadOnlyList <JToken> > QueryApiForModsAsync() { string[] tables = { ItemTableName, ItemModTableName }; string[] fields = { ModId }; var where = $"{Rarity}='Unique' AND is_implicit=false AND is_random=false AND {ModId} != ''"; var joinOn = $"{ItemTableName}.{PageName}={ItemModTableName}.{PageName}"; return(WikiApiAccessor.CargoQueryAsync(tables, fields, where, joinOn)); }
private Task <IReadOnlyList <JToken> > QueryApiForUniquesAsync(string wikiClass) { string[] tables = { ItemTableName }; var where = GetWhereClause(wikiClass); return(WikiApiAccessor.CargoQueryAsync(tables, Fields, where)); }
private Task <IEnumerable <JToken> > QueryApiAsync(string wikiClass) { string[] tables = { ItemTableName }; var where = GetWhereClause(wikiClass); return(WikiApiAccessor.CargoQueryAsync(tables, Fields, where)); }