Class Annotation
Annotations associated with the plain-text body of the message. Example plain-text message body: Hello
@FooBot how are you!"
The corresponding annotations metadata: "annotations":[{ "type":"USER_MENTION",
"startIndex":6, "length":7, "userMention": { "user": { "name":"users/107946847022116401880",
"displayName":"FooBot", "avatarUrl":"https://goo.gl/aeDtrS", "type":"BOT" }, "type":"MENTION" } }]
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class Annotation : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Length
Length of the substring in the plain-text message body this annotation corresponds to.
Declaration
[JsonProperty("length")]
public virtual int? Length { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
SlashCommand
The metadata for a slash command.
Declaration
[JsonProperty("slashCommand")]
public virtual SlashCommandMetadata SlashCommand { get; set; }
Property Value
Type | Description |
---|---|
SlashCommandMetadata |
StartIndex
Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.
Declaration
[JsonProperty("startIndex")]
public virtual int? StartIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Type
The type of this annotation.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UserMention
The metadata of user mention.
Declaration
[JsonProperty("userMention")]
public virtual UserMentionMetadata UserMention { get; set; }
Property Value
Type | Description |
---|---|
UserMentionMetadata |