Beispiel #1
0
    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);
    }
Beispiel #2
0
 private static async Task <List <int> > GetMapIndex(string identifier, string @namespace)
 {
     return(await BASE_API_URL.WithEndpoint(@namespace).WithTimeout(Settings.TimeoutLength).GetJsonAsync <List <int> >());
 }
Beispiel #3
0
 private static async Task <Map> GetMapById(string identifier, string @namespace)
 {
     return(await BASE_API_URL.WithEndpoint(@namespace).ById(identifier).WithTimeout(Settings.TimeoutLength).GetJsonAsync <Map>());
 }