Class: Google::Apis::ChatV1::EmojiReactionSummary
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::EmojiReactionSummary
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
The number of people who reacted to a message with a specific emoji.
Instance Attribute Summary collapse
-
#emoji ⇒ Google::Apis::ChatV1::Emoji
An emoji that is used as a reaction to a message.
-
#reaction_count ⇒ Fixnum
The total number of reactions using the associated emoji.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EmojiReactionSummary
constructor
A new instance of EmojiReactionSummary.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EmojiReactionSummary
Returns a new instance of EmojiReactionSummary.
1144 1145 1146 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1144 def initialize(**args) update!(**args) end |
Instance Attribute Details
#emoji ⇒ Google::Apis::ChatV1::Emoji
An emoji that is used as a reaction to a message.
Corresponds to the JSON property emoji
1137 1138 1139 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1137 def emoji @emoji end |
#reaction_count ⇒ Fixnum
The total number of reactions using the associated emoji.
Corresponds to the JSON property reactionCount
1142 1143 1144 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1142 def reaction_count @reaction_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1149 1150 1151 1152 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1149 def update!(**args) @emoji = args[:emoji] if args.key?(:emoji) @reaction_count = args[:reaction_count] if args.key?(:reaction_count) end |