Archived
1
0

Completed core (except WL and history retrieval)

This commit is contained in:
Michael Gordeev
2020-05-11 02:21:16 +03:00
parent 2a987e33a2
commit 454ea6c0d0
5 changed files with 147 additions and 72 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ namespace FoxTube.Services
try
{
// TODO: Add backend
HttpResponseMessage response = await client.GetAsync($"https://xfox111.net/FoxTube/Messages?toast=true&publishedAfter={storage.Values["Inbox.lastCheck"]}&lang={Settings.Language}&appVersion={Metrics.CurrentVersion}");
HttpResponseMessage response = await client.GetAsync($"https://xfox111.net/FoxTube/Inbox?toast=true&publishedAfter={storage.Values["Inbox.lastCheck"]}&lang={Settings.Language}&appVersion={Metrics.CurrentVersion}");
storage.Values["Inbox.lastCheck"] = DateTime.UtcNow.Ticks;
if (response.StatusCode == HttpStatusCode.NoContent)
@@ -67,7 +67,7 @@ namespace FoxTube.Services
// TODO: Add backend
Settings.LastReviewedVersion = Metrics.CurrentVersion;
HttpResponseMessage response = await client.GetAsync($"https://xfox111.net/API/FoxTube/Changelogs?toast=true&lang={Settings.Language}&version={Metrics.CurrentVersion}");
HttpResponseMessage response = await client.GetAsync($"https://xfox111.net/API/FoxTube/Changelog?lang={Settings.Language}&version={Metrics.CurrentVersion}");
if (response.StatusCode == HttpStatusCode.NoContent)
return;