microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.0.8

Branches

Tags

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

Clone

HTTPS

Download ZIP

core/src/Microsoft.Teams.Apps/Handlers/TaskModules/TaskModuleRequest.cs

36lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4using System.Text.Json.Serialization;
5
6namespace Microsoft.Teams.Apps.Handlers.TaskModules;
7
8/// <summary>
9/// Task module invoke request value payload.
10/// </summary>
11public class TaskModuleRequest
12{
13 /// <summary>
14 /// User input data. Free payload with key-value pairs.
15 /// </summary>
16 [JsonPropertyName("data")]
17 public object? Data { get; set; }
18
19 /// <summary>
20 /// Current user context, i.e., the current theme.
21 /// </summary>
22 [JsonPropertyName("context")]
23 public TaskModuleRequestContext? Context { get; set; }
24}
25
26/// <summary>
27/// Current user context, i.e., the current theme.
28/// </summary>
29public class TaskModuleRequestContext
30{
31 /// <summary>
32 /// The user's current theme.
33 /// </summary>
34 [JsonPropertyName("theme")]
35 public string? Theme { get; set; }
36}
37