microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
core/src/Microsoft.Teams.Bot.Apps/Schema/TeamsActivityJsonContext.cs
42lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Text.Json.Serialization; |
| 5 | using Microsoft.Teams.Bot.Core.Schema; |
| 6 | using Microsoft.Teams.Bot.Apps.Schema.Entities; |
| 7 | using Microsoft.Teams.Bot.Apps.Schema.MessageActivities; |
| 8 | |
| 9 | namespace Microsoft.Teams.Bot.Apps.Schema; |
| 10 | |
| 11 | /// <summary> |
| 12 | /// Json source generator context for Teams activity types. |
| 13 | /// </summary> |
| 14 | [JsonSourceGenerationOptions( |
| 15 | WriteIndented = true, |
| 16 | IncludeFields = true, |
| 17 | DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, |
| 18 | PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)] |
| 19 | [JsonSerializable(typeof(CoreActivity))] |
| 20 | [JsonSerializable(typeof(TeamsActivity))] |
| 21 | [JsonSerializable(typeof(MessageActivity))] |
| 22 | [JsonSerializable(typeof(MessageReactionActivity))] |
| 23 | [JsonSerializable(typeof(MessageUpdateActivity))] |
| 24 | [JsonSerializable(typeof(MessageDeleteActivity))] |
| 25 | [JsonSerializable(typeof(InvokeActivity))] |
| 26 | [JsonSerializable(typeof(Entity))] |
| 27 | [JsonSerializable(typeof(EntityList))] |
| 28 | [JsonSerializable(typeof(MentionEntity))] |
| 29 | [JsonSerializable(typeof(ClientInfoEntity))] |
| 30 | [JsonSerializable(typeof(TeamsChannelData))] |
| 31 | [JsonSerializable(typeof(ConversationAccount))] |
| 32 | [JsonSerializable(typeof(TeamsConversationAccount))] |
| 33 | [JsonSerializable(typeof(TeamsConversation))] |
| 34 | [JsonSerializable(typeof(ExtendedPropertiesDictionary))] |
| 35 | [JsonSerializable(typeof(System.Text.Json.JsonElement))] |
| 36 | [JsonSerializable(typeof(System.Int32))] |
| 37 | [JsonSerializable(typeof(System.Boolean))] |
| 38 | [JsonSerializable(typeof(System.Int64))] |
| 39 | [JsonSerializable(typeof(System.Double))] |
| 40 | public partial class TeamsActivityJsonContext : JsonSerializerContext |
| 41 | { |
| 42 | } |
| 43 | |