Class DeprecatedEvent
A Google Chat app interaction event that represents and contains data about a user's interaction with a Chat app. To configure your Chat app to receive interaction events, see Receive and respond to user interactions. In addition to receiving events from user interactions, Chat apps can receive events about changes to spaces, such as when a new member is added to a space. To learn about space events, see Work with events from Google Chat.
Implements
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class DeprecatedEvent : IDirectResponseSchema
Properties
Action
For CARD_CLICKED
interaction events, the form action data associated when a user clicks a card or dialog.
To learn more, see Read form data input by users on
cards.
Declaration
[JsonProperty("action")]
public virtual FormAction Action { get; set; }
Property Value
Type | Description |
---|---|
FormAction |
Common
Represents information about the user's client, such as locale, host app, and platform. For Chat apps,
CommonEventObject
includes information submitted by users interacting with
dialogs, like data entered on a card.
Declaration
[JsonProperty("common")]
public virtual CommonEventObject Common { get; set; }
Property Value
Type | Description |
---|---|
CommonEventObject |
ConfigCompleteRedirectUrl
For MESSAGE
interaction events, the URL that users must be redirected to after they complete an
authorization or configuration flow outside of Google Chat. For more information, see Connect a Chat app
with other services and tools.
Declaration
[JsonProperty("configCompleteRedirectUrl")]
public virtual string ConfigCompleteRedirectUrl { get; set; }
Property Value
Type | Description |
---|---|
string |
DialogEventType
The type of dialog interaction event received.
Declaration
[JsonProperty("dialogEventType")]
public virtual string DialogEventType { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
EventTime
object representation of EventTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use EventTimeDateTimeOffset instead.")]
public virtual object EventTime { get; set; }
Property Value
Type | Description |
---|---|
object |
EventTimeDateTimeOffset
DateTimeOffset representation of EventTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? EventTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
EventTimeRaw
The timestamp indicating when the interaction event occurred.
Declaration
[JsonProperty("eventTime")]
public virtual string EventTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
IsDialogEvent
For CARD_CLICKED
and MESSAGE
interaction events, whether the user is interacting with or about to
interact with a dialog.
Declaration
[JsonProperty("isDialogEvent")]
public virtual bool? IsDialogEvent { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Message
For ADDED_TO_SPACE
, CARD_CLICKED
, and MESSAGE
interaction events, the message that triggered the
interaction event, if applicable.
Declaration
[JsonProperty("message")]
public virtual Message Message { get; set; }
Property Value
Type | Description |
---|---|
Message |
Space
The space in which the user interacted with the Chat app.
Declaration
[JsonProperty("space")]
public virtual Space Space { get; set; }
Property Value
Type | Description |
---|---|
Space |
ThreadKey
The Chat app-defined key for the thread related to the interaction event. See
spaces.messages.thread.threadKey
for more information.
Declaration
[JsonProperty("threadKey")]
public virtual string ThreadKey { get; set; }
Property Value
Type | Description |
---|---|
string |
Token
A secret value that legacy Chat apps can use to verify if a request is from Google. Google randomly generates the token, and its value remains static. You can obtain, revoke, or regenerate the token from the Chat API configuration page in the Google Cloud Console. Modern Chat apps don't use this field. It is absent from API responses and the Chat API configuration page.
Declaration
[JsonProperty("token")]
public virtual string Token { get; set; }
Property Value
Type | Description |
---|---|
string |
Type
The type of user interaction with the Chat app, such as
MESSAGE
or ADDED_TO_SPACE
.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
string |
User
The user that interacted with the Chat app.
Declaration
[JsonProperty("user")]
public virtual User User { get; set; }
Property Value
Type | Description |
---|---|
User |