Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedReaction
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteSharedReaction
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
The total number of users who have reacted.
-
#create_timestamp ⇒ Fixnum
When the first emoji of this type was added.
-
#current_user_participated ⇒ Boolean
(also: #current_user_participated?)
Whether the current user reacted using this emoji.
-
#emoji ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedEmoji
Corresponds to the JSON property
emoji
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppsDynamiteSharedReaction
constructor
A new instance of AppsDynamiteSharedReaction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteSharedReaction
Returns a new instance of AppsDynamiteSharedReaction.
2173 2174 2175 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2173 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
The total number of users who have reacted.
Corresponds to the JSON property count
2154 2155 2156 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2154 def count @count end |
#create_timestamp ⇒ Fixnum
When the first emoji of this type was added.
Corresponds to the JSON property createTimestamp
2159 2160 2161 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2159 def @create_timestamp end |
#current_user_participated ⇒ Boolean Also known as: current_user_participated?
Whether the current user reacted using this emoji. Note: Unlike most
properties of messages, this is different per-user.
Corresponds to the JSON property currentUserParticipated
2165 2166 2167 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2165 def current_user_participated @current_user_participated end |
#emoji ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedEmoji
Corresponds to the JSON property emoji
2171 2172 2173 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2171 def emoji @emoji end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2178 2179 2180 2181 2182 2183 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2178 def update!(**args) @count = args[:count] if args.key?(:count) @create_timestamp = args[:create_timestamp] if args.key?(:create_timestamp) @current_user_participated = args[:current_user_participated] if args.key?(:current_user_participated) @emoji = args[:emoji] if args.key?(:emoji) end |