2024-07-12 13:36:09 -04:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
2024-06-16 20:19:31 -04:00
|
|
|
namespace TwitchChatTTS.OBS.Socket.Data
|
|
|
|
{
|
|
|
|
public class RequestBatchMessage
|
|
|
|
{
|
|
|
|
public string RequestId { get; set; }
|
|
|
|
public bool HaltOnFailure { get; set; }
|
|
|
|
public RequestBatchExecutionType ExecutionType { get; set; }
|
2024-07-12 13:36:09 -04:00
|
|
|
public IEnumerable<object> Requests { get; set; }
|
2024-06-16 20:19:31 -04:00
|
|
|
|
|
|
|
public RequestBatchMessage(string id, IEnumerable<object> requests, bool haltOnFailure = false, RequestBatchExecutionType executionType = RequestBatchExecutionType.SerialRealtime)
|
|
|
|
{
|
|
|
|
RequestId = id;
|
|
|
|
Requests = requests;
|
|
|
|
HaltOnFailure = haltOnFailure;
|
|
|
|
ExecutionType = executionType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-12 13:36:09 -04:00
|
|
|
public enum RequestBatchExecutionType
|
|
|
|
{
|
2024-06-16 20:19:31 -04:00
|
|
|
None = -1,
|
|
|
|
SerialRealtime = 0,
|
|
|
|
SerialFrame = 1,
|
|
|
|
Parallel = 2
|
|
|
|
}
|
|
|
|
}
|