microsoft/teams.net

Public

mirrored from https://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.0.0-preview.5

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Apps/Events/EventType.cs

23lines · modecode

1using Microsoft.Teams.Common;
2
3namespace Microsoft.Teams.Apps.Events;
4
5public 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}