private static async Task <DyeColor> GetDyeColorById(string identifier, string @namespace) { if (ColorIdIndex.Contains(Int32.Parse(identifier))) { return(await BASE_API_URL.WithEndpoint(@namespace).ById(identifier).WithTimeout(Settings.TimeoutLength).GetJsonAsync <DyeColor>()); } return(null); }
private static async Task <List <int> > GetMapIndex(string identifier, string @namespace) { return(await BASE_API_URL.WithEndpoint(@namespace).WithTimeout(Settings.TimeoutLength).GetJsonAsync <List <int> >()); }
private static async Task <Map> GetMapById(string identifier, string @namespace) { return(await BASE_API_URL.WithEndpoint(@namespace).ById(identifier).WithTimeout(Settings.TimeoutLength).GetJsonAsync <Map>()); }