microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
core/src/Microsoft.Bot.Core/Activities/ConversationUpdateActivity.cs
121lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace Microsoft.Bot.Core.Activities; |
| 5 | |
| 6 | /// <summary> |
| 7 | /// Represents a conversation update activity. |
| 8 | /// </summary> |
| 9 | public class ConversationUpdateActivity : Activity |
| 10 | { |
| 11 | /// <summary> |
| 12 | /// Gets or sets the updated topic name of the conversation. |
| 13 | /// </summary> |
| 14 | [JsonPropertyName("topicName")] |
| 15 | public string? TopicName { get; set; } |
| 16 | |
| 17 | /// <summary> |
| 18 | /// Gets or sets a value indicating whether the prior history of the channel is disclosed. |
| 19 | /// </summary> |
| 20 | [JsonPropertyName("historyDisclosed")] |
| 21 | public bool? HistoryDisclosed { get; set; } |
| 22 | |
| 23 | /// <summary> |
| 24 | /// Gets or sets the collection of members added to the conversation. |
| 25 | /// </summary> |
| 26 | [JsonPropertyName("membersAdded")] |
| 27 | #pragma warning disable CA2227 // Collection properties should be read only |
| 28 | public IList<Account>? MembersAdded { get; set; } |
| 29 | #pragma warning restore CA2227 // Collection properties should be read only |
| 30 | |
| 31 | /// <summary> |
| 32 | /// Gets or sets the collection of members removed from the conversation. |
| 33 | /// </summary> |
| 34 | [JsonPropertyName("membersRemoved")] |
| 35 | #pragma warning disable CA2227 // Collection properties should be read only |
| 36 | public IList<Account>? MembersRemoved { get; set; } |
| 37 | #pragma warning restore CA2227 // Collection properties should be read only |
| 38 | |
| 39 | /// <summary> |
| 40 | /// Initializes a new instance of the <see cref="ConversationUpdateActivity"/> class. |
| 41 | /// </summary> |
| 42 | public ConversationUpdateActivity() : base(ActivityTypes.ConversationUpdate) |
| 43 | { |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /// <summary> |
| 48 | /// String constants for conversation update event types. |
| 49 | /// </summary> |
| 50 | public static class ConversationEventTypes |
| 51 | { |
| 52 | /// <summary> |
| 53 | /// Channel created event type. |
| 54 | /// </summary> |
| 55 | public const string ChannelCreated = "channelCreated"; |
| 56 | |
| 57 | /// <summary> |
| 58 | /// Channel deleted event type. |
| 59 | /// </summary> |
| 60 | public const string ChannelDeleted = "channelDeleted"; |
| 61 | |
| 62 | /// <summary> |
| 63 | /// Channel renamed event type. |
| 64 | /// </summary> |
| 65 | public const string ChannelRenamed = "channelRenamed"; |
| 66 | |
| 67 | /// <summary> |
| 68 | /// Channel restored event type. |
| 69 | /// </summary> |
| 70 | public const string ChannelRestored = "channelRestored"; |
| 71 | |
| 72 | /// <summary> |
| 73 | /// Channel shared event type. |
| 74 | /// </summary> |
| 75 | public const string ChannelShared = "channelShared"; |
| 76 | |
| 77 | /// <summary> |
| 78 | /// Channel unshared event type. |
| 79 | /// </summary> |
| 80 | public const string ChannelUnShared = "channelUnshared"; |
| 81 | |
| 82 | /// <summary> |
| 83 | /// Channel member added event type. |
| 84 | /// </summary> |
| 85 | public const string ChannelMemberAdded = "channelMemberAdded"; |
| 86 | |
| 87 | /// <summary> |
| 88 | /// Channel member removed event type. |
| 89 | /// </summary> |
| 90 | public const string ChannelMemberRemoved = "channelMemberRemoved"; |
| 91 | |
| 92 | /// <summary> |
| 93 | /// Team archived event type. |
| 94 | /// </summary> |
| 95 | public const string TeamArchived = "teamArchived"; |
| 96 | |
| 97 | /// <summary> |
| 98 | /// Team deleted event type. |
| 99 | /// </summary> |
| 100 | public const string TeamDeleted = "teamDeleted"; |
| 101 | |
| 102 | /// <summary> |
| 103 | /// Team hard deleted event type. |
| 104 | /// </summary> |
| 105 | public const string TeamHardDeleted = "teamHardDeleted"; |
| 106 | |
| 107 | /// <summary> |
| 108 | /// Team renamed event type. |
| 109 | /// </summary> |
| 110 | public const string TeamRenamed = "teamRenamed"; |
| 111 | |
| 112 | /// <summary> |
| 113 | /// Team restored event type. |
| 114 | /// </summary> |
| 115 | public const string TeamRestored = "teamRestored"; |
| 116 | |
| 117 | /// <summary> |
| 118 | /// Team unarchived event type. |
| 119 | /// </summary> |
| 120 | public const string TeamUnarchived = "teamUnarchived"; |
| 121 | } |
| 122 | |