18 lines
557 B
C#
18 lines
557 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Lagrange.OneBot.Core.Entity.Action;
|
|
|
|
[Serializable]
|
|
public class OneBotResult(object? data, int retCode, string status, string echo)
|
|
{
|
|
[JsonPropertyName("status")] public string Status { get; set; } = status;
|
|
|
|
[JsonPropertyName("retcode")] public int RetCode { get; set; } = retCode;
|
|
|
|
[JsonPropertyName("data")] public object? Data { get; set; } = data;
|
|
|
|
[JsonPropertyName("echo")] public string Echo { get; set; } = echo;
|
|
|
|
[JsonIgnore] public string? Identifier { get; internal set; }
|
|
}
|