Table of Contents

Class PubSubEventMessage

Namespace
Firesplash.UnityAssets.TwitchIntegration.DataTypes.PubSub.Base
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

PubSubEventMessageData

IsAnonymous

This field is null for most events

[JsonProperty("is_anonymous")]
public bool IsAnonymous { get; }

Property Value

bool

MessageId

This is an id which identifies this exact PubSub datagram

[JsonProperty("message_id")]
public string MessageId { get; }

Property Value

string

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

string

Topic

[JsonIgnore]
public string Topic { get; }

Property Value

string

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

string

Version

This field has nothing to do with "v1" or "v2" like it's available for bits!

[JsonProperty("version")]
public string Version { get; }

Property Value

string