コード例 #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 WriteLog(Uri requestUri, Exception exception, bool showMessage = false)
 {
     await ClientService.WriteLog(requestUri, exception, showMessage);
 }
コード例 #5
0
 public async Task WriteDebug(string debugLog)
 {
     var methodWithParam = "postdebuglog?debugLogstring=" + debugLog;
     await ClientService.SendAsync(HttpMethod.Post, ControllerName, methodWithParam);
 }
コード例 #6
0
 public async Task WriteLog(string title, string message, bool showMessage)
 {
     await ClientService.WriteLog(null, title, message, showMessage);
 }
コード例 #7
0
 public async Task PostSkipOptionAsync(string email, bool skip)
 {
     await ClientService.PostDataAsync(null, ControllerName, "posttrackerskipphotos?options=" + Convert.ToBase64String(Encoding.UTF8.GetBytes(email + ":" + (skip ? "1" : "0"))));
 }
コード例 #8
0
 public async Task <string> GetStringAsync(string requestUri)
 {
     return(await ClientService.GetStringAsync(new Uri(requestUri)));
 }