google_api_mirror v0.6.0 GoogleApi.Mirror.V1.Model.UserAction View Source

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

Attributes

  • payload (type: String.t, default: nil) - An optional payload for the action.

    For actions of type CUSTOM, this is the ID of the custom menu item that was selected.

  • type (type: String.t, default: nil) - 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Mirror.V1.Model.UserAction{
  payload: String.t(),
  type: String.t()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.