Table of Contents

Class PubSubCommerceEventData

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

The data delivered by a commerce event

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

Properties

ChannelId

The id of the channel where the transaction has been made

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

Property Value

string

ChannelName

The name of the channel where the transaction has been made

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

Property Value

string

DisplayName

The display name of the user who made a transaction

[JsonProperty("display_name")]
public string DisplayName { get; }

Property Value

string

ItemDescription

The description of the item which was bought by the user

[JsonProperty("item_description")]
public string ItemDescription { get; }

Property Value

string

ItemImageUrl

The URL to an image of the item which was bought by the user

[JsonProperty("item_image_url")]
public string ItemImageUrl { get; }

Property Value

string

PurchaseMessage

The Umessage given by the user when the commerce was fulfilled. May contain emotes.

[JsonProperty("purchase_message")]
public PubSubEventChatMessage PurchaseMessage { get; }

Property Value

PubSubEventChatMessage

SupportsChannel

If the transaction supports the channel

[JsonProperty("supports_channel")]
public bool SupportsChannel { get; }

Property Value

bool

Time

The time when the transaction was made

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

Property Value

DateTime

UserId

The id of the user who made a transaction

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

Property Value

string

UserName

The login name of the user who made a transaction

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

Property Value

string