Table of Contents

Class PubSubBitsEventData

Namespace
Firesplash.UnityAssets.TwitchIntegration.DataTypes.PubSub.EventData
Assembly
Firesplash.UnityAssets.TwitchIntegration.dll

The data contained in a Bits V1 or V2 message

[Serializable]
public class PubSubBitsEventData : PubSubEventMessageData
Inheritance
PubSubBitsEventData
Inherited Members

Properties

BadgeEntitlement

Information about a user’s new badge level, if the cheer was not anonymous and the user reached a new badge level with this cheer. Otherwise, null.

[JsonProperty("badge_entitlement")]
public BadgeEntitlement BadgeEntitlement { get; }

Property Value

BadgeEntitlement

BitsUsed

Number of bits used.

[JsonProperty("bits_used")]
public int BitsUsed { get; }

Property Value

int

ChannelId

The ID of the channel where the cheer happened

[JsonProperty("channel_id")]
public string ChannelId { get; }

Property Value

string

ChannelName

The name of the channel where the cheer happened

[JsonProperty("channel_name")]
public string ChannelName { get; }

Property Value

string

ChatMessage

Chat message sent with the cheer.

[JsonProperty("chat_message")]
public string ChatMessage { get; }

Property Value

string

Context

Event type associated with this use of Bits.

[JsonProperty("context")]
public string Context { get; }

Property Value

string

Time

Time when the Bits were used.

[JsonProperty("time")]
public DateTime Time { get; }

Property Value

DateTime

TotalBitsUsed

All time total number of Bits used in the channel by this specific user.

[JsonProperty("total_bits_used")]
public int TotalBitsUsed { get; }

Property Value

int

UserId

The ID of the twitch user who cheered

[JsonProperty("user_id")]
public string UserId { get; }

Property Value

string

UserName

The login of the twitch user who cheered

[JsonProperty("user_name")]
public string UserName { get; }

Property Value

string