Class ByteDanceMicroAppResponse
- Namespace
- SKIT.FlurlHttpClient.ByteDance.MicroApp
- Assembly
- DH.SKIT.FlurlHttpClient.ByteDance.MicroApp.dll
字节小程序 API 响应的基类。
public abstract class ByteDanceMicroAppResponse : ICommonResponse
- Inheritance
-
ByteDanceMicroAppResponse
- Implements
-
ICommonResponse
- Derived
- Inherited Members
Constructors
ByteDanceMicroAppResponse()
protected ByteDanceMicroAppResponse()
Properties
ErrorCode
获取字节小程序 API 返回的详细错误号。
[JsonPropertyName("errcode")]
public virtual long ErrorCode { get; set; }
Property Value
ErrorMessage
获取字节小程序 API 返回的错误描述。
[JsonPropertyName("errmsg")]
public virtual string? ErrorMessage { get; set; }
Property Value
LogId
获取字节小程序 API 返回的日志 ID。
[JsonPropertyName("log_id")]
[JsonConverter(typeof(NumericalStringReadOnlyConverter))]
public virtual string? LogId { get; set; }
Property Value
RawBytes
获取原始的 HTTP 响应正文。
[JsonIgnore]
public byte[] RawBytes { get; }
Property Value
- byte[]
RawHeaders
获取原始的 HTTP 响应表头集合。
[JsonIgnore]
public IDictionary<string, string> RawHeaders { get; }
Property Value
RawStatus
获取原始的 HTTP 响应状态码。
[JsonIgnore]
public int RawStatus { get; }
Property Value
Methods
IsSuccessful()
获取一个值,该值指示调用字节小程序 API 是否成功(即 HTTP 状态码为 200、且 "errcode" 值为 0)。
public virtual bool IsSuccessful()