public static bool IsEmpty(this InstallStatusOverview overview) => overview.Collections.IsEmpty() && overview.Mods.IsEmpty() && overview.Missions.IsEmpty();
// 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.. static Task<HttpResponseMessage> PostInstallStatusOverview(InstallStatusOverview statusOverview) { return Tools.Transfer.PostJson(statusOverview, new Uri(CommonUrls.SocialApiUrl, "/api/stats")); }
public Task CreateStatusOverview(InstallStatusOverview stats, CancellationToken ct) => Wrap(t => _api.StatusOverview(stats, t), ct);