refactor: Bool-Typen in den Modellen auf bool? geändert
This commit is contained in:
@@ -7,9 +7,9 @@ namespace WindreamHub.Legacy.Client.Models.Authentication
|
|||||||
public int? UserID { get; set; }
|
public int? UserID { get; set; }
|
||||||
public string UserName { get; set; }
|
public string UserName { get; set; }
|
||||||
public string FullUserName { get; set; }
|
public string FullUserName { get; set; }
|
||||||
public bool IsValidUser { get; set; }
|
public bool? IsValidUser { get; set; }
|
||||||
public ErrorDetails Error { get; set; }
|
public ErrorDetails Error { get; set; }
|
||||||
public List<ErrorDetails> Errors { get; set; }
|
public List<ErrorDetails> Errors { get; set; }
|
||||||
public bool HasErrors { get; set; }
|
public bool? HasErrors { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
public class DocCreateBody
|
public class DocCreateBody
|
||||||
{
|
{
|
||||||
public Item Item { get; set; }
|
public Item Item { get; set; }
|
||||||
public bool CreateFolder { get; set; }
|
public bool? CreateFolder { get; set; }
|
||||||
public int? ResponseDetails { get; set; }
|
public int? ResponseDetails { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,14 +8,14 @@
|
|||||||
public int? Type { get; set; }
|
public int? Type { get; set; }
|
||||||
public int? UnderlyingType { get; set; }
|
public int? UnderlyingType { get; set; }
|
||||||
public string Column { get; set; }
|
public string Column { get; set; }
|
||||||
public bool IsSystem { get; set; }
|
public bool? IsSystem { get; set; }
|
||||||
public bool IsSortable { get; set; }
|
public bool? IsSortable { get; set; }
|
||||||
public VectorDetails VectorDetails { get; set; }
|
public VectorDetails VectorDetails { get; set; }
|
||||||
public TypeSpecificDetails TypeSpecificDetails { get; set; }
|
public TypeSpecificDetails TypeSpecificDetails { get; set; }
|
||||||
public int? MaxSize { get; set; }
|
public int? MaxSize { get; set; }
|
||||||
public bool AlwaysModifiable { get; set; }
|
public bool? AlwaysModifiable { get; set; }
|
||||||
public int? PreDigits { get; set; }
|
public int? PreDigits { get; set; }
|
||||||
public int? PostDigits { get; set; }
|
public int? PostDigits { get; set; }
|
||||||
public bool IsFulltext { get; set; }
|
public bool? IsFulltext { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,6 +8,6 @@ namespace WindreamHub.Legacy.Client.Models.Documents.Response
|
|||||||
public IndexingDetails IndexingDetails { get; set; }
|
public IndexingDetails IndexingDetails { get; set; }
|
||||||
public Error Error { get; set; }
|
public Error Error { get; set; }
|
||||||
public List<Error> Errors { get; set; }
|
public List<Error> Errors { get; set; }
|
||||||
public bool HasErrors { get; set; }
|
public bool? HasErrors { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,6 @@
|
|||||||
{
|
{
|
||||||
public class IndexingDetails
|
public class IndexingDetails
|
||||||
{
|
{
|
||||||
public bool IndexEventRequired { get; set; }
|
public bool? IndexEventRequired { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,6 @@
|
|||||||
{
|
{
|
||||||
public class TypeSpecificDetails
|
public class TypeSpecificDetails
|
||||||
{
|
{
|
||||||
public bool OnceEditable { get; set; }
|
public bool? OnceEditable { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,6 +8,6 @@
|
|||||||
|
|
||||||
public object Errors { get; set; }
|
public object Errors { get; set; }
|
||||||
|
|
||||||
public bool HasErrors { get; set; }
|
public bool? HasErrors { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -34,7 +34,7 @@ namespace WindreamHub.Legacy.Client
|
|||||||
{
|
{
|
||||||
_client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", credential.AuthorizationHeader);
|
_client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", credential.AuthorizationHeader);
|
||||||
var res = await Authentication.IsValidUser();
|
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)
|
public async Task<bool> AuthenticateAsync(string domain, string name, string password)
|
||||||
|
|||||||
Reference in New Issue
Block a user