1.0.7
Bessere Trennung manueller / automatischer Login Umstellung auf Sekunden wegen aktualisierter Hauptanwendung Umstellung auf Toasts bei Informationsmeldungen Abstände und Sichtbarkeiten vereinheitlicht Upgrade auf .NET9
This commit is contained in:
@@ -29,9 +29,9 @@ internal static class BaseFunc {
|
||||
using (HttpResponseMessage HttpResponseMessage = await client.GetAsync(url).ConfigureAwait(false)) {
|
||||
var byteArray = await HttpResponseMessage.Content.ReadAsByteArrayAsync();
|
||||
string responseData = Encoding.UTF8.GetString(byteArray);
|
||||
using (HttpContent HttpContent = HttpResponseMessage.Content) {
|
||||
//responseData = await HttpContent.ReadAsStringAsync();
|
||||
}
|
||||
//using (HttpContent HttpContent = HttpResponseMessage.Content) {
|
||||
// //responseData = await HttpContent.ReadAsStringAsync();
|
||||
//}
|
||||
if (HttpResponseMessage.StatusCode == System.Net.HttpStatusCode.OK) {
|
||||
return responseData;
|
||||
} else {
|
||||
@@ -98,6 +98,9 @@ internal static class BaseFunc {
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Notiz laden
|
||||
/// </summary>
|
||||
internal static Note Load(string filename) {
|
||||
filename = System.IO.Path.Combine(FileSystem.AppDataDirectory, filename);
|
||||
|
||||
@@ -169,6 +172,9 @@ internal static class BaseFunc {
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Stundeneintrag löschen
|
||||
/// </summary>
|
||||
internal static async Task DeleteItemAsync(string url, string token) {
|
||||
using (HttpClient client = new HttpClient() { Timeout = TimeSpan.FromSeconds(15) }) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user