TDLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
reactionNotificationSettings Class Referencefinal

Inherits Object.

Description

Contains information about notification settings for reactions and poll votes.

Public Member Functions

 reactionNotificationSettings ()
 
 reactionNotificationSettings (object_ptr< ReactionNotificationSource > &&message_reaction_source_, object_ptr< ReactionNotificationSource > &&story_reaction_source_, object_ptr< ReactionNotificationSource > &&poll_vote_source_, int64 sound_id_, bool show_preview_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
 
TlObject & operator= (TlObject &&)=default
 
virtual void store (TlStorerCalcLength &s) const
 
virtual void store (TlStorerUnsafe &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

object_ptr< ReactionNotificationSource > message_reaction_source_
 Source of message reactions for which notifications are shown.
 
object_ptr< ReactionNotificationSource > poll_vote_source_
 Source of poll votes for which notifications are shown.
 
bool show_preview_
 True, if reaction sender and emoji must be displayed in notifications.
 
int64 sound_id_
 Identifier of the notification sound to be played; 0 if sound is disabled; pass -1 to use the app-dependent default sound.
 
object_ptr< ReactionNotificationSource > story_reaction_source_
 Source of story reactions for which notifications are shown.
 

Static Public Attributes

static const std::int32_t ID = 2074932258
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ reactionNotificationSettings() [1/2]

Contains information about notification settings for reactions and poll votes.

◆ reactionNotificationSettings() [2/2]

reactionNotificationSettings ( object_ptr< ReactionNotificationSource > &&  message_reaction_source_,
object_ptr< ReactionNotificationSource > &&  story_reaction_source_,
object_ptr< ReactionNotificationSource > &&  poll_vote_source_,
int64  sound_id_,
bool  show_preview_ 
)

Contains information about notification settings for reactions and poll votes.

Parameters
[in]message_reaction_source_Source of message reactions for which notifications are shown.
[in]story_reaction_source_Source of story reactions for which notifications are shown.
[in]poll_vote_source_Source of poll votes for which notifications are shown.
[in]sound_id_Identifier of the notification sound to be played; 0 if sound is disabled; pass -1 to use the app-dependent default sound.
[in]show_preview_True, if reaction sender and emoji must be displayed in notifications.

Member Function Documentation

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


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