microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Plugins/Microsoft.Teams.Plugins.AspNetCore.DevTools/Models/Page.cs
44lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Text.Json.Serialization; |
| 5 | |
| 6 | namespace Microsoft.Teams.Plugins.AspNetCore.DevTools.Models; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// the custom page that can be added |
| 10 | /// to the devtools |
| 11 | /// </summary> |
| 12 | public class Page |
| 13 | { |
| 14 | /// <summary> |
| 15 | /// an optional icon name |
| 16 | /// to be shown in the view header |
| 17 | /// </summary> |
| 18 | [JsonPropertyName("icon")] |
| 19 | [JsonPropertyOrder(0)] |
| 20 | public string? Icon { get; set; } |
| 21 | |
| 22 | /// <summary> |
| 23 | /// the unique name of the view |
| 24 | /// (must be url safe) |
| 25 | /// </summary> |
| 26 | [JsonPropertyName("name")] |
| 27 | [JsonPropertyOrder(1)] |
| 28 | public required string Name { get; set; } |
| 29 | |
| 30 | /// <summary> |
| 31 | /// the display name of the view |
| 32 | /// to be shown in the view header |
| 33 | /// </summary> |
| 34 | [JsonPropertyName("displayName")] |
| 35 | [JsonPropertyOrder(2)] |
| 36 | public required string DisplayName { get; set; } |
| 37 | |
| 38 | /// <summary> |
| 39 | /// the url of the view |
| 40 | /// </summary> |
| 41 | [JsonPropertyName("url")] |
| 42 | [JsonPropertyOrder(3)] |
| 43 | public required string Url { get; set; } |
| 44 | } |