twitch-agent/TwitchEventSub/Types/Goals.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

18 lines
1.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace TwitchEventSub.Types
{
public class Goals : Event
{
public string id { get; set; } //An ID that identifies this event.
public string broadcaster_user_id { get; set; } //An ID that uniquely identifies the broadcaster.
public string broadcaster_user_name { get; set; } //The broadcasters display name.
public string broadcaster_user_login { get; set; } //The broadcasters user handle.
public GoalType type { get; set; } //The type of goal. Possible values are: followers, subscriptions
public string description { get; set; } //maximum of 40 characters
public bool? is_achieved { get; set; } //whether the broadcaster achieved their goal. Only the channel.goal.end event includes this
public int current_amount { get; set; }
public int target_amount { get; set; }
public string started_at { get; set; } //The UTC timestamp in RFC 3339 format, which indicates when the broadcaster created the goal.
public string ended_at { get; set; } //The UTC timestamp in RFC 3339 format, which indicates when the broadcaster ended the goal. Only the channel.goal.end event includes this field.
}
public enum GoalType { followers, subscriptions }
}