Class Annotation
Output only. Annotations associated with the plain-text body of the message. To add basic formatting to a text message, see Format text messages. 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/{user}", "displayName":"FooBot", "avatarUrl":"https://goo.gl/aeDtrS", "type":"BOT" },
"type":"MENTION" } }]
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 |
---|---|
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 |
---|---|
int? |
RichLinkMetadata
The metadata for a rich link.
Declaration
[JsonProperty("richLinkMetadata")]
public virtual RichLinkMetadata RichLinkMetadata { get; set; }
Property Value
Type | Description |
---|---|
RichLinkMetadata |
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 |
---|---|
int? |
Type
The type of this annotation.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
string |
UserMention
The metadata of user mention.
Declaration
[JsonProperty("userMention")]
public virtual UserMentionMetadata UserMention { get; set; }
Property Value
Type | Description |
---|---|
UserMentionMetadata |