microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Apps/Events/EventType.cs
23lines · modecode
| 1 | using Microsoft.Teams.Common; |
| 2 | |
| 3 | namespace Microsoft.Teams.Apps.Events; |
| 4 | |
| 5 | public class EventType(string value) : StringEnum(value) |
| 6 | { |
| 7 | public static readonly EventType Start = new("start"); |
| 8 | public bool IsStart => Start.Equals(Value); |
| 9 | |
| 10 | public static readonly EventType Error = new("error"); |
| 11 | public bool IsError => Error.Equals(Value); |
| 12 | |
| 13 | public static readonly EventType Activity = new("activity"); |
| 14 | public bool IsActivity => Activity.Equals(Value); |
| 15 | |
| 16 | public static readonly EventType ActivitySent = new("activity.sent"); |
| 17 | public bool IsActivitySent => ActivitySent.Equals(Value); |
| 18 | |
| 19 | public static readonly EventType ActivityResponse = new("activity.response"); |
| 20 | public bool IsActivityResponse => ActivityResponse.Equals(Value); |
| 21 | |
| 22 | public bool IsBuiltIn => IsStart || IsError || IsActivity || IsActivitySent || IsActivityResponse; |
| 23 | } |