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