microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
samples/migration-bot

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

core/src/Microsoft.Teams.Bot.Apps/Schema/Entities/OMessageEntity.cs

31lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4using System.Text.Json.Serialization;
5
6namespace Microsoft.Teams.Bot.Apps.Schema.Entities;
7
8/// <summary>
9/// OMessage entity.
10/// </summary>
11public class OMessageEntity : Entity
12{
13
14 /// <summary>
15 /// Creates a new instance of <see cref="OMessageEntity"/>.
16 /// </summary>
17 public OMessageEntity() : base("https://schema.org/Message")
18 {
19 OType = "Message";
20 OContext = "https://schema.org";
21 }
22 /// <summary>
23 /// Gets or sets the additional type.
24 /// </summary>
25 [JsonPropertyName("additionalType")]
26 public IList<string>? AdditionalType
27 {
28 get => base.Properties.TryGetValue("additionalType", out object? value) ? value as IList<string> : null;
29 set => base.Properties["additionalType"] = value;
30 }
31}
32