Class PubSubEventMessage
- Assembly
- Firesplash.UnityAssets.TwitchIntegration.dll
[Serializable]
public class PubSubEventMessage
- Inheritance
-
PubSubEventMessage
- Derived
- Inherited Members
Properties
Data
The data payload of this datagram
[JsonProperty("data")]
public PubSubEventMessageData Data { get; }
Property Value
IsAnonymous
This field is null for most events
[JsonProperty("is_anonymous")]
public bool IsAnonymous { get; }
Property Value
MessageId
This is an id which identifies this exact PubSub datagram
[JsonProperty("message_id")]
public string MessageId { get; }
Property Value
MessageType
Indicates the type of the data - You should not need it as we distinguish for you. This is only set for Bits Events. For all the other events see "Type"
[JsonProperty("message_type")]
public string MessageType { get; }
Property Value
Topic
[JsonIgnore]
public string Topic { get; }
Property Value
Type
This is set for some events like hype trains. It can give more information about the event that caused this datagram or about what this datagram represents as twitch sometimes sends only a subset of fields depending on this "Type". Referr to Twitch's documentation if you need further information.
[JsonProperty("type")]
public string Type { get; }
Property Value
Version
This field has nothing to do with "v1" or "v2" like it's available for bits!
[JsonProperty("version")]
public string Version { get; }