microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/MessageExtensions/Query.cs
58lines · modecode
| 1 | using System.Text.Json.Serialization; |
| 2 | |
| 3 | namespace Microsoft.Teams.Api.MessageExtensions; |
| 4 | |
| 5 | /// <summary> |
| 6 | /// Messaging extension query |
| 7 | /// </summary> |
| 8 | public class Query |
| 9 | { |
| 10 | /// <summary> |
| 11 | /// Id of the command assigned by Bot |
| 12 | /// </summary> |
| 13 | [JsonPropertyName("commandId")] |
| 14 | [JsonPropertyOrder(0)] |
| 15 | public string? CommandId { get; set; } |
| 16 | |
| 17 | /// <summary> |
| 18 | /// Parameters for the query |
| 19 | /// </summary> |
| 20 | [JsonPropertyName("parameters")] |
| 21 | [JsonPropertyOrder(1)] |
| 22 | public IList<Parameter>? Parameters { get; set; } |
| 23 | |
| 24 | /// <summary> |
| 25 | /// Query options |
| 26 | /// </summary> |
| 27 | [JsonPropertyName("queryOptions")] |
| 28 | [JsonPropertyOrder(2)] |
| 29 | public Options? QueryOptions { get; set; } |
| 30 | |
| 31 | /// <summary> |
| 32 | /// State parameter passed back to the bot after |
| 33 | /// authentication/configuration flow |
| 34 | /// </summary> |
| 35 | [JsonPropertyName("state")] |
| 36 | [JsonPropertyOrder(3)] |
| 37 | public string? State { get; set; } |
| 38 | |
| 39 | /// <summary> |
| 40 | /// Messaging extension query options |
| 41 | /// </summary> |
| 42 | public class Options |
| 43 | { |
| 44 | /// <summary> |
| 45 | /// Number of entities to skip |
| 46 | /// </summary> |
| 47 | [JsonPropertyName("skip")] |
| 48 | [JsonPropertyOrder(0)] |
| 49 | public int? Skip { get; set; } |
| 50 | |
| 51 | /// <summary> |
| 52 | /// Number of entities to fetch |
| 53 | /// </summary> |
| 54 | [JsonPropertyName("count")] |
| 55 | [JsonPropertyOrder(1)] |
| 56 | public int? Count { get; set; } |
| 57 | } |
| 58 | } |