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