Esempio n. 1
0
 public static bool IsEmpty(this InstallStatusOverview overview)
 => overview.Collections.IsEmpty() && overview.Mods.IsEmpty() && overview.Missions.IsEmpty();
Esempio n. 2
0
 // TODO: Post this to an async Queue that processes and retries in the background instead? (and perhaps merges queued items etc??)
 // And make the errors non fatal..
 Task PostInstallStatusOverview(InstallStatusOverview statusOverview, CancellationToken ct)
 => _api.CreateStatusOverview(statusOverview, ct);
 // TODO: Post this to an async Queue that processes and retries in the background instead? (and perhaps merges queued items etc??)
 // And make the errors non fatal..
 Task PostInstallStatusOverview(InstallStatusOverview statusOverview, CancellationToken ct)
     => _api.CreateStatusOverview(statusOverview, ct);
Esempio n. 4
0
 // TODO: Post this to an async Queue that processes and retries in the background instead? (and perhaps merges queued items etc??)
 // And make the errors non fatal..
 static Task<HttpResponseMessage> PostInstallStatusOverview(InstallStatusOverview statusOverview) {
     return Tools.Transfer.PostJson(statusOverview, new Uri(CommonUrls.SocialApiUrl, "/api/stats"));
 }
Esempio n. 5
0
 public Task CreateStatusOverview(InstallStatusOverview stats, CancellationToken ct)
 => Wrap(t => _api.StatusOverview(stats, t), ct);