public async Task <string> WeightLoseWarningPercentile() => await ClientService.GetStringAsync(new Uri(ClientService.GetRequestUri("constants", $"weightlosewarningpercentile")));
public async Task <string> Blogs() => await ClientService.GetStringAsync(new Uri(ClientService.GetRequestUri("constants", $"blogs?region={App.Configuration.GetApplication()}&lang={App.Configuration?.AppConfig.DefaultLanguage}")));
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}")));
public async Task WriteLog(Uri requestUri, Exception exception, bool showMessage = false) { await ClientService.WriteLog(requestUri, exception, showMessage); }
public async Task WriteDebug(string debugLog) { var methodWithParam = "postdebuglog?debugLogstring=" + debugLog; await ClientService.SendAsync(HttpMethod.Post, ControllerName, methodWithParam); }
public async Task WriteLog(string title, string message, bool showMessage) { await ClientService.WriteLog(null, title, message, showMessage); }
public async Task PostSkipOptionAsync(string email, bool skip) { await ClientService.PostDataAsync(null, ControllerName, "posttrackerskipphotos?options=" + Convert.ToBase64String(Encoding.UTF8.GetBytes(email + ":" + (skip ? "1" : "0")))); }
public async Task <string> GetStringAsync(string requestUri) { return(await ClientService.GetStringAsync(new Uri(requestUri))); }