Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedReaction

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteSharedReaction

Returns a new instance of AppsDynamiteSharedReaction.



2115
2116
2117
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2115

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#countFixnum

The total number of users who have reacted. Corresponds to the JSON property count

Returns:

  • (Fixnum)


2096
2097
2098
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2096

def count
  @count
end

#create_timestampFixnum

When the first emoji of this type was added. Corresponds to the JSON property createTimestamp

Returns:

  • (Fixnum)


2101
2102
2103
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2101

def create_timestamp
  @create_timestamp
end

#current_user_participatedBoolean 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

Returns:

  • (Boolean)


2107
2108
2109
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2107

def current_user_participated
  @current_user_participated
end

#emojiGoogle::Apis::CloudsearchV1::AppsDynamiteSharedEmoji

Corresponds to the JSON property emoji



2113
2114
2115
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2113

def emoji
  @emoji
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2120
2121
2122
2123
2124
2125
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2120

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