twitch-agent/TwitchEventSub/Types/EventSubSubscription/Request.cs
Adam R. Grey 3f717df1d4 psuedoinitial
actually I had a previous repo but my dumb ass let the real appsettings sneak in
2021-10-24 01:13:07 -04:00

23 lines
827 B
C#

using System;
using System.Collections.Generic;
namespace TwitchEventSub.Types.EventSubSubscription
{
public class Request
{
///<summary>
///use one of SubscribableTypes
///</summary>
public string type { get; set; }
public string version { get; set; }
public Conditions.Condition condition { get; set; }
public Transport transport { get; set; }
}
public class Transport
{
public TransportMethod method { get; set; } //The transport method. Supported values: webhook.
public Uri callback { get; set; } //The callback URL where the notification should be sent. Must use https. Must use port 443.
public string secret { get; set; } //The secret used for verifying a signature.
}
public enum TransportMethod { webhook }
}