microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
core/src/Microsoft.Teams.Bot.Apps/Schema/TeamsActivityJsonContext.cs
55lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Text.Json.Serialization; |
| 5 | using Microsoft.Teams.Bot.Apps.Schema.Entities; |
| 6 | using Microsoft.Teams.Bot.Core.Schema; |
| 7 | |
| 8 | namespace Microsoft.Teams.Bot.Apps.Schema; |
| 9 | |
| 10 | /// <summary> |
| 11 | /// Json source generator context for Teams activity types. |
| 12 | /// </summary> |
| 13 | [JsonSourceGenerationOptions( |
| 14 | WriteIndented = true, |
| 15 | IncludeFields = true, |
| 16 | DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, |
| 17 | PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)] |
| 18 | [JsonSerializable(typeof(CoreActivity))] |
| 19 | [JsonSerializable(typeof(TeamsActivity))] |
| 20 | [JsonSerializable(typeof(MessageActivity))] |
| 21 | [JsonSerializable(typeof(StreamingActivity))] |
| 22 | [JsonSerializable(typeof(Entity))] |
| 23 | [JsonSerializable(typeof(EntityList))] |
| 24 | [JsonSerializable(typeof(MentionEntity))] |
| 25 | [JsonSerializable(typeof(ClientInfoEntity))] |
| 26 | [JsonSerializable(typeof(OMessageEntity))] |
| 27 | [JsonSerializable(typeof(SensitiveUsageEntity))] |
| 28 | [JsonSerializable(typeof(DefinedTerm))] |
| 29 | [JsonSerializable(typeof(ProductInfoEntity))] |
| 30 | [JsonSerializable(typeof(StreamInfoEntity))] |
| 31 | [JsonSerializable(typeof(CitationEntity))] |
| 32 | [JsonSerializable(typeof(CitationClaim))] |
| 33 | [JsonSerializable(typeof(CitationAppearanceDocument))] |
| 34 | [JsonSerializable(typeof(CitationImageObject))] |
| 35 | [JsonSerializable(typeof(CitationAppearance))] |
| 36 | [JsonSerializable(typeof(SuggestedActions))] |
| 37 | [JsonSerializable(typeof(SuggestedAction))] |
| 38 | [JsonSerializable(typeof(TeamsChannelData))] |
| 39 | [JsonSerializable(typeof(ConversationAccount))] |
| 40 | [JsonSerializable(typeof(TeamsConversationAccount))] |
| 41 | [JsonSerializable(typeof(TeamsConversation))] |
| 42 | [JsonSerializable(typeof(ExtendedPropertiesDictionary))] |
| 43 | [JsonSerializable(typeof(TeamsAttachment))] |
| 44 | [JsonSerializable(typeof(System.Text.Json.JsonElement))] |
| 45 | [JsonSerializable(typeof(System.Text.Json.Nodes.JsonObject))] |
| 46 | [JsonSerializable(typeof(System.Text.Json.Nodes.JsonNode))] |
| 47 | [JsonSerializable(typeof(System.Text.Json.Nodes.JsonArray))] |
| 48 | [JsonSerializable(typeof(System.Text.Json.Nodes.JsonValue))] |
| 49 | [JsonSerializable(typeof(System.Int32))] |
| 50 | [JsonSerializable(typeof(System.Boolean))] |
| 51 | [JsonSerializable(typeof(System.Int64))] |
| 52 | [JsonSerializable(typeof(System.Double))] |
| 53 | public partial class TeamsActivityJsonContext : JsonSerializerContext |
| 54 | { |
| 55 | } |
| 56 | |