microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Apps/Events/EventType.cs
29lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using Microsoft.Teams.Common; |
| 5 | |
| 6 | namespace Microsoft.Teams.Apps.Events; |
| 7 | |
| 8 | public class EventType(string value) : StringEnum(value) |
| 9 | { |
| 10 | public static readonly EventType Start = new("start"); |
| 11 | public bool IsStart => Start.Equals(Value); |
| 12 | |
| 13 | public static readonly EventType Error = new("error"); |
| 14 | public bool IsError => Error.Equals(Value); |
| 15 | |
| 16 | public static readonly EventType SignIn = new("signin"); |
| 17 | public bool IsSignIn => SignIn.Equals(Value); |
| 18 | |
| 19 | public static readonly EventType Activity = new("activity"); |
| 20 | public bool IsActivity => Activity.Equals(Value); |
| 21 | |
| 22 | public static readonly EventType ActivitySent = new("activity.sent"); |
| 23 | public bool IsActivitySent => ActivitySent.Equals(Value); |
| 24 | |
| 25 | public static readonly EventType ActivityResponse = new("activity.response"); |
| 26 | public bool IsActivityResponse => ActivityResponse.Equals(Value); |
| 27 | |
| 28 | public bool IsBuiltIn => IsStart || IsError || IsSignIn || IsActivity || IsActivitySent || IsActivityResponse; |
| 29 | } |