class Google::Apis::MirrorV1::UserAction

Represents an action taken by the user that triggered a notification.

Attributes

payload[RW]

An optional payload for the action. For actions of type CUSTOM, this is the ID of the custom menu item that was selected. Corresponds to the JSON property `payload` @return [String]

type[RW]

The type of action. The value of this can be:

  • SHARE - the user shared an item.

  • REPLY - the user replied to an item.

  • REPLY_ALL - the user replied to all recipients of an item.

  • CUSTOM - the user selected a custom menu item on the timeline item.

  • DELETE - the user deleted the item.

  • PIN - the user pinned the item.

  • UNPIN - the user unpinned the item.

  • LAUNCH - the user initiated a voice command. In the future, additional

types may be added. UserActions with unrecognized types should be ignored. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/mirror_v1/classes.rb, line 1035
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/mirror_v1/classes.rb, line 1040
def update!(**args)
  @payload = args[:payload] if args.key?(:payload)
  @type = args[:type] if args.key?(:type)
end