1
This commit is contained in:
@@ -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")]
|
||||
|
Reference in New Issue
Block a user