forked from microsoft/win32metadata
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApiDetails.cs
More file actions
52 lines (45 loc) · 1.59 KB
/
Copy pathApiDetails.cs
File metadata and controls
52 lines (45 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Windows.SDK.Win32Docs
{
using System;
using System.Collections.Generic;
using MessagePack;
/// <summary>
/// Captures all the documentation we have available for an API.
/// </summary>
[MessagePackObject]
public class ApiDetails
{
/// <summary>
/// Gets or sets the URL that provides more complete documentation for this API.
/// </summary>
[Key(0)]
public Uri? HelpLink { get; set; }
/// <summary>
/// Gets or sets a summary of what the API is for.
/// </summary>
[Key(1)]
public string? Description { get; set; }
/// <summary>
/// Gets or sets the remarks section of the documentation.
/// </summary>
[Key(2)]
public string? Remarks { get; set; }
/// <summary>
/// Gets or sets a collection of parameter docs, keyed by their names.
/// </summary>
[Key(3)]
public Dictionary<string, string> Parameters { get; set; } = new();
/// <summary>
/// Gets or sets a collection of field docs, keyed by their names.
/// </summary>
[Key(4)]
public Dictionary<string, string> Fields { get; set; } = new();
/// <summary>
/// Gets or sets the documentation of the return value of the API, if applicable.
/// </summary>
[Key(5)]
public string? ReturnValue { get; set; }
}
}