This commit is contained in:
CortexCore
2024-03-31 23:31:00 +08:00
parent e179d2eb53
commit b7b89ee71a
641 changed files with 31286 additions and 22134 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Net.Http;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
@@ -50,6 +51,12 @@ namespace BITKit
{
return self.ToString();
}
#if NET5_0_OR_GREATER
public static implicit operator HttpContent(ContextModel self)
{
return new StringContent(self, System.Text.Encoding.UTF8, "application/json");
}
#endif
public override string ToString()
{
@@ -57,7 +64,7 @@ namespace BITKit
}
[JsonProperty("status_code")]
public int StatusCode;
public int StatusCode=200;
[JsonProperty("message")]
public string Message=string.Empty;
[JsonProperty("data")]

View File

@@ -5,6 +5,7 @@ namespace BITKit
public record Package
{
public string Name=nameof(Package);
public string DirectoryPath;
public string GitUrl;
public string Version;
@@ -12,5 +13,6 @@ namespace BITKit
public string ProcessName;
public string ProductName;
public DateTime LastUpdateTime;
}
}