microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
feat/a365-mcp

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

29lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using Microsoft.Teams.Common;
5
6namespace Microsoft.Teams.Apps.Events;
7
8public 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}