Twitch SDK (Internal)
Public Types | Public Member Functions | Public Attributes | List of all members
ttv::chat::EmoticonToken Struct Reference

#include <chattypes.h>

Inheritance diagram for ttv::chat::EmoticonToken:
ttv::Cloneable< MessageToken, EmoticonToken > ttv::chat::MessageToken

Public Types

enum  Type {
  Type::Text, Type::Emoticon, Type::Mention, Type::Url,
  Type::Bits
}
 

Public Member Functions

 EmoticonToken ()
 
 EmoticonToken (const std::string &emoticonText, EmoticonId emoticonId)
 
virtual Type GetType () const override
 

Public Attributes

std::string emoticonText
 The raw text which was transformed into the image. More...
 
EmoticonId emoticonId
 The emoticon id. More...
 

Detailed Description

EmoticonToken - Information about how to render an emoticon. You can generate a URL for the emoticon image by calling ChatAPI::GetEmoticonUrl().

Member Enumeration Documentation

◆ Type

enum ttv::chat::MessageToken::Type
stronginherited
Enumerator
Text 
Emoticon 
Mention 
Url 
Bits 

Constructor & Destructor Documentation

◆ EmoticonToken() [1/2]

ttv::chat::EmoticonToken::EmoticonToken ( )

◆ EmoticonToken() [2/2]

ttv::chat::EmoticonToken::EmoticonToken ( const std::string &  emoticonText,
EmoticonId  emoticonId 
)

Member Function Documentation

◆ GetType()

virtual Type ttv::chat::EmoticonToken::GetType ( ) const
inlineoverridevirtual

Member Data Documentation

◆ emoticonId

EmoticonId ttv::chat::EmoticonToken::emoticonId

The emoticon id.

◆ emoticonText

std::string ttv::chat::EmoticonToken::emoticonText

The raw text which was transformed into the image.


The documentation for this struct was generated from the following file: