microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/Entities/QuotedReplyEntity.cs
46lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Diagnostics.CodeAnalysis; |
| 5 | using System.Text.Json.Serialization; |
| 6 | |
| 7 | namespace Microsoft.Teams.Api.Entities; |
| 8 | |
| 9 | [Experimental("ExperimentalTeamsQuotedReplies")] |
| 10 | public class QuotedReplyEntity : Entity |
| 11 | { |
| 12 | [JsonPropertyName("quotedReply")] |
| 13 | [JsonPropertyOrder(3)] |
| 14 | public required QuotedReplyData QuotedReply { get; set; } |
| 15 | |
| 16 | public QuotedReplyEntity() : base("quotedReply") { } |
| 17 | } |
| 18 | |
| 19 | [Experimental("ExperimentalTeamsQuotedReplies")] |
| 20 | public class QuotedReplyData |
| 21 | { |
| 22 | [JsonPropertyName("messageId")] |
| 23 | public required string MessageId { get; set; } |
| 24 | |
| 25 | [JsonPropertyName("senderId")] |
| 26 | public string? SenderId { get; set; } |
| 27 | |
| 28 | [JsonPropertyName("senderName")] |
| 29 | public string? SenderName { get; set; } |
| 30 | |
| 31 | [JsonPropertyName("preview")] |
| 32 | public string? Preview { get; set; } |
| 33 | |
| 34 | /// <summary> |
| 35 | /// Timestamp of the quoted message (IC3 epoch value, e.g. "1772050244572"). |
| 36 | /// Populated on inbound; ignored on outbound. Absent for deleted quotes. |
| 37 | /// </summary> |
| 38 | [JsonPropertyName("time")] |
| 39 | public string? Time { get; set; } |
| 40 | |
| 41 | [JsonPropertyName("isReplyDeleted")] |
| 42 | public bool? IsReplyDeleted { get; set; } |
| 43 | |
| 44 | [JsonPropertyName("validatedMessageReference")] |
| 45 | public bool? ValidatedMessageReference { get; set; } |
| 46 | } |