-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathResponse.cs
More file actions
31 lines (27 loc) · 917 Bytes
/
Response.cs
File metadata and controls
31 lines (27 loc) · 917 Bytes
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
using System;
using SharpKit.JavaScript;
namespace SharpKit.FIDO
{
/// <summary>
/// Low-level API
/// </summary>
[JsType(JsMode.Json, PropertiesAsFields = true, NativeCasts = true)]
public class Response
{
/// <summary>
/// The type of request, either "u2f_register_request" or "u2f_sign_request".
/// </summary>
[JsProperty(Name = "type", NativeField = true)]
public JsString Type { get; set; }
/// <summary>
/// Error or RegisterResponse or SignResponse
/// </summary>
[JsProperty(Name = "responseData", NativeField = true)]
public ResponseData ResponseData { get; set; }
/// <summary>
/// An integer identifying this request from concurrent requests.
/// </summary>
[JsProperty(Name = "requestId", NativeField = true)]
public int RequestId { get; set; }
}
}