microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
core/src/Microsoft.Teams.Bot.Apps/Schema/Entities/OMessageEntity.cs
31lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Text.Json.Serialization; |
| 5 | |
| 6 | namespace Microsoft.Teams.Bot.Apps.Schema.Entities; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// OMessage entity. |
| 10 | /// </summary> |
| 11 | public 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 | |