refactor: Bool-Typen in den Modellen auf bool? geändert

This commit is contained in:
Developer 02 2024-09-13 09:44:20 +02:00
parent d0ae6c4541
commit d9784115ce
8 changed files with 13 additions and 13 deletions

View File

@ -7,9 +7,9 @@ namespace WindreamHub.Legacy.Client.Models.Authentication
public int? UserID { get; set; }
public string UserName { get; set; }
public string FullUserName { get; set; }
public bool IsValidUser { get; set; }
public bool? IsValidUser { get; set; }
public ErrorDetails Error { get; set; }
public List<ErrorDetails> Errors { get; set; }
public bool HasErrors { get; set; }
public bool? HasErrors { get; set; }
}
}
}

View File

@ -3,7 +3,7 @@
public class DocCreateBody
{
public Item Item { get; set; }
public bool CreateFolder { get; set; }
public bool? CreateFolder { get; set; }
public int? ResponseDetails { get; set; }
}
}

View File

@ -8,14 +8,14 @@
public int? Type { get; set; }
public int? UnderlyingType { get; set; }
public string Column { get; set; }
public bool IsSystem { get; set; }
public bool IsSortable { get; set; }
public bool? IsSystem { get; set; }
public bool? IsSortable { get; set; }
public VectorDetails VectorDetails { get; set; }
public TypeSpecificDetails TypeSpecificDetails { get; set; }
public int? MaxSize { get; set; }
public bool AlwaysModifiable { get; set; }
public bool? AlwaysModifiable { get; set; }
public int? PreDigits { get; set; }
public int? PostDigits { get; set; }
public bool IsFulltext { get; set; }
public bool? IsFulltext { get; set; }
}
}

View File

@ -8,6 +8,6 @@ namespace WindreamHub.Legacy.Client.Models.Documents.Response
public IndexingDetails IndexingDetails { get; set; }
public Error Error { get; set; }
public List<Error> Errors { get; set; }
public bool HasErrors { get; set; }
public bool? HasErrors { get; set; }
}
}

View File

@ -2,6 +2,6 @@
{
public class IndexingDetails
{
public bool IndexEventRequired { get; set; }
public bool? IndexEventRequired { get; set; }
}
}

View File

@ -2,6 +2,6 @@
{
public class TypeSpecificDetails
{
public bool OnceEditable { get; set; }
public bool? OnceEditable { get; set; }
}
}

View File

@ -8,6 +8,6 @@
public object Errors { get; set; }
public bool HasErrors { get; set; }
public bool? HasErrors { get; set; }
}
}

View File

@ -34,7 +34,7 @@ namespace WindreamHub.Legacy.Client
{
_client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", credential.AuthorizationHeader);
var res = await Authentication.IsValidUser();
return res.Ok && res.Data.IsValidUser;
return res.Ok && (res.Data.IsValidUser ?? false);
}
public async Task<bool> AuthenticateAsync(string domain, string name, string password)