mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-15 19:22:19 +08:00
19 lines
463 B
C#
19 lines
463 B
C#
using System;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
namespace BililiveRecorder.ToolBox
|
|
{
|
|
public class CommandResponse<TResponseData> where TResponseData : IResponseData
|
|
{
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public ResponseStatus Status { get; set; }
|
|
|
|
public TResponseData? Data { get; set; }
|
|
|
|
public string? ErrorMessage { get; set; }
|
|
|
|
public Exception? Exception { get; set; }
|
|
}
|
|
}
|