Пример #1
0
 public async Task <string> WeightLoseWarningPercentile() => await ClientService.GetStringAsync(new Uri(ClientService.GetRequestUri("constants", "weightlosewarningpercentile")));
Пример #2
0
 public async Task <string> Blogs() =>
 await ClientService.GetStringAsync(new Uri(ClientService.GetRequestUri("constants",
                                                                        $"blogs?region={App.Configuration.GetApplication()}&lang={App.Configuration?.AppConfig.DefaultLanguage}")));
Пример #3
0
 public async Task <string> MoreWebLinks() => await ClientService.GetStringAsync(new Uri(ClientService.GetRequestUri("constants",
                                                                                                                     $"more_links_path" +
                                                                                                                     $"?{App.Configuration?.AppConfig.ApplicationRequestHeader}={App.Configuration?.GetApplication()}" +
                                                                                                                     $"&{HttpConstants.REQUEST_HEADER_LANGUAGE}={App.Configuration?.AppConfig.DefaultLanguage}" +
                                                                                                                     $"&{HttpConstants.VERSION}={App.Configuration?.AppConfig.ApplicationVersion}" +
                                                                                                                     $"&{HttpConstants.PLATFORM}={DeviceInfo.GetPlatform}")));
Пример #4
0
 public async Task <string> GetStringAsync(string requestUri)
 {
     return(await ClientService.GetStringAsync(new Uri(requestUri)));
 }