microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
core/src/Microsoft.Teams.Bot.DevTools/Events/IDevToolsEvent.cs
30lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | namespace Microsoft.Teams.Bot.DevTools.Events; |
| 5 | |
| 6 | /// <summary> |
| 7 | /// Base interface for all DevTools events sent to WebSocket clients. |
| 8 | /// </summary> |
| 9 | public interface IDevToolsEvent |
| 10 | { |
| 11 | /// <summary> |
| 12 | /// Unique identifier for this event. |
| 13 | /// </summary> |
| 14 | Guid Id { get; } |
| 15 | |
| 16 | /// <summary> |
| 17 | /// Event type discriminator (e.g. "activity.received", "metadata"). |
| 18 | /// </summary> |
| 19 | string Type { get; } |
| 20 | |
| 21 | /// <summary> |
| 22 | /// Event payload. |
| 23 | /// </summary> |
| 24 | object? Body { get; } |
| 25 | |
| 26 | /// <summary> |
| 27 | /// When this event was created. |
| 28 | /// </summary> |
| 29 | DateTime SentAt { get; } |
| 30 | } |
| 31 | |