2024-07-19 16:56:41 +00:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
2024-03-12 18:05:27 +00:00
|
|
|
namespace TwitchChatTTS.OBS.Socket.Data
|
|
|
|
{
|
|
|
|
public class IdentifyMessage
|
|
|
|
{
|
2024-03-15 12:27:35 +00:00
|
|
|
public int RpcVersion { get; set; }
|
2024-07-19 16:56:41 +00:00
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
2024-03-15 12:27:35 +00:00
|
|
|
public string? Authentication { get; set; }
|
2024-07-19 16:56:41 +00:00
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
|
|
public int? EventSubscriptions { get; set; }
|
2024-03-12 18:05:27 +00:00
|
|
|
|
2024-07-19 16:56:41 +00:00
|
|
|
public IdentifyMessage(int rpcVersion, string? authentication, int? subscriptions)
|
2024-06-17 00:19:31 +00:00
|
|
|
{
|
2024-07-19 16:56:41 +00:00
|
|
|
RpcVersion = rpcVersion;
|
|
|
|
Authentication = authentication;
|
2024-03-15 12:27:35 +00:00
|
|
|
EventSubscriptions = subscriptions;
|
2024-03-12 18:05:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|