Class SpaceEvent
An event that represents a change or activity in a Google Chat space. To learn more, 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 SpaceEvent : IDirectResponseSchema
Properties
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
Time when the event occurred.
Declaration
[JsonProperty("eventTime")]
public virtual string EventTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EventType
Type of space event. Each event type has a batch version, which represents multiple instances of the event
type that occur in a short period of time. For spaceEvents.list() requests, omit batch event types in your
query filter. By default, the server returns both event type and its batch version. Supported event types
for messages: * New
message: google.workspace.chat.message.v1.created * Updated message:
google.workspace.chat.message.v1.updated * Deleted message: google.workspace.chat.message.v1.deleted *
Multiple new messages: google.workspace.chat.message.v1.batchCreated * Multiple updated messages:
google.workspace.chat.message.v1.batchUpdated * Multiple deleted messages:
google.workspace.chat.message.v1.batchDeleted Supported event types for
memberships: * New
membership: google.workspace.chat.membership.v1.created * Updated membership:
google.workspace.chat.membership.v1.updated * Deleted membership:
google.workspace.chat.membership.v1.deleted * Multiple new memberships:
google.workspace.chat.membership.v1.batchCreated * Multiple updated memberships:
google.workspace.chat.membership.v1.batchUpdated * Multiple deleted memberships:
google.workspace.chat.membership.v1.batchDeleted Supported event types for
reactions: *
New reaction: google.workspace.chat.reaction.v1.created * Deleted reaction:
google.workspace.chat.reaction.v1.deleted * Multiple new reactions:
google.workspace.chat.reaction.v1.batchCreated * Multiple deleted reactions:
google.workspace.chat.reaction.v1.batchDeleted Supported event types about the
space: * Updated space:
google.workspace.chat.space.v1.updated * Multiple space updates:
google.workspace.chat.space.v1.batchUpdated
Declaration
[JsonProperty("eventType")]
public virtual string EventType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MembershipBatchCreatedEventData
Event payload for multiple new memberships. Event type: google.workspace.chat.membership.v1.batchCreated
Declaration
[JsonProperty("membershipBatchCreatedEventData")]
public virtual MembershipBatchCreatedEventData MembershipBatchCreatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MembershipBatchCreatedEventData |
MembershipBatchDeletedEventData
Event payload for multiple deleted memberships. Event type:
google.workspace.chat.membership.v1.batchDeleted
Declaration
[JsonProperty("membershipBatchDeletedEventData")]
public virtual MembershipBatchDeletedEventData MembershipBatchDeletedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MembershipBatchDeletedEventData |
MembershipBatchUpdatedEventData
Event payload for multiple updated memberships. Event type:
google.workspace.chat.membership.v1.batchUpdated
Declaration
[JsonProperty("membershipBatchUpdatedEventData")]
public virtual MembershipBatchUpdatedEventData MembershipBatchUpdatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MembershipBatchUpdatedEventData |
MembershipCreatedEventData
Event payload for a new membership. Event type: google.workspace.chat.membership.v1.created
Declaration
[JsonProperty("membershipCreatedEventData")]
public virtual MembershipCreatedEventData MembershipCreatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MembershipCreatedEventData |
MembershipDeletedEventData
Event payload for a deleted membership. Event type: google.workspace.chat.membership.v1.deleted
Declaration
[JsonProperty("membershipDeletedEventData")]
public virtual MembershipDeletedEventData MembershipDeletedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MembershipDeletedEventData |
MembershipUpdatedEventData
Event payload for an updated membership. Event type: google.workspace.chat.membership.v1.updated
Declaration
[JsonProperty("membershipUpdatedEventData")]
public virtual MembershipUpdatedEventData MembershipUpdatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MembershipUpdatedEventData |
MessageBatchCreatedEventData
Event payload for multiple new messages. Event type: google.workspace.chat.message.v1.batchCreated
Declaration
[JsonProperty("messageBatchCreatedEventData")]
public virtual MessageBatchCreatedEventData MessageBatchCreatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageBatchCreatedEventData |
MessageBatchDeletedEventData
Event payload for multiple deleted messages. Event type: google.workspace.chat.message.v1.batchDeleted
Declaration
[JsonProperty("messageBatchDeletedEventData")]
public virtual MessageBatchDeletedEventData MessageBatchDeletedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageBatchDeletedEventData |
MessageBatchUpdatedEventData
Event payload for multiple updated messages. Event type: google.workspace.chat.message.v1.batchUpdated
Declaration
[JsonProperty("messageBatchUpdatedEventData")]
public virtual MessageBatchUpdatedEventData MessageBatchUpdatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageBatchUpdatedEventData |
MessageCreatedEventData
Event payload for a new message. Event type: google.workspace.chat.message.v1.created
Declaration
[JsonProperty("messageCreatedEventData")]
public virtual MessageCreatedEventData MessageCreatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageCreatedEventData |
MessageDeletedEventData
Event payload for a deleted message. Event type: google.workspace.chat.message.v1.deleted
Declaration
[JsonProperty("messageDeletedEventData")]
public virtual MessageDeletedEventData MessageDeletedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageDeletedEventData |
MessageUpdatedEventData
Event payload for an updated message. Event type: google.workspace.chat.message.v1.updated
Declaration
[JsonProperty("messageUpdatedEventData")]
public virtual MessageUpdatedEventData MessageUpdatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| MessageUpdatedEventData |
Name
Resource name of the space event. Format: spaces/{space}/spaceEvents/{spaceEvent}
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ReactionBatchCreatedEventData
Event payload for multiple new reactions. Event type: google.workspace.chat.reaction.v1.batchCreated
Declaration
[JsonProperty("reactionBatchCreatedEventData")]
public virtual ReactionBatchCreatedEventData ReactionBatchCreatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| ReactionBatchCreatedEventData |
ReactionBatchDeletedEventData
Event payload for multiple deleted reactions. Event type: google.workspace.chat.reaction.v1.batchDeleted
Declaration
[JsonProperty("reactionBatchDeletedEventData")]
public virtual ReactionBatchDeletedEventData ReactionBatchDeletedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| ReactionBatchDeletedEventData |
ReactionCreatedEventData
Event payload for a new reaction. Event type: google.workspace.chat.reaction.v1.created
Declaration
[JsonProperty("reactionCreatedEventData")]
public virtual ReactionCreatedEventData ReactionCreatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| ReactionCreatedEventData |
ReactionDeletedEventData
Event payload for a deleted reaction. Event type: google.workspace.chat.reaction.v1.deleted
Declaration
[JsonProperty("reactionDeletedEventData")]
public virtual ReactionDeletedEventData ReactionDeletedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| ReactionDeletedEventData |
SpaceBatchUpdatedEventData
Event payload for multiple updates to a space. Event type: google.workspace.chat.space.v1.batchUpdated
Declaration
[JsonProperty("spaceBatchUpdatedEventData")]
public virtual SpaceBatchUpdatedEventData SpaceBatchUpdatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| SpaceBatchUpdatedEventData |
SpaceUpdatedEventData
Event payload for a space update. Event type: google.workspace.chat.space.v1.updated
Declaration
[JsonProperty("spaceUpdatedEventData")]
public virtual SpaceUpdatedEventData SpaceUpdatedEventData { get; set; }
Property Value
| Type | Description |
|---|---|
| SpaceUpdatedEventData |