about summary refs log tree commit diff
path: root/LibMatrix/Responses/DeviceKeysUploadRequest.cs
blob: c93c4c63a42a0e6afbb070baa41a085735a4a6b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System.Text.Json.Serialization;

namespace LibMatrix.Responses;

public class DeviceKeysUploadRequest {
    [JsonPropertyName("device_keys")]
    public DeviceKeysSchema DeviceKeys { get; set; }


    [JsonPropertyName("one_time_keys")]
    public Dictionary<string, OneTimeKey> OneTimeKeys { get; set; }

    public class DeviceKeysSchema {
        [JsonPropertyName("algorithms")]
        public List<string> Algorithms { get; set; }
    }
    public class OneTimeKey {
        [JsonPropertyName("key")]
        public string Key { get; set; }
        
        [JsonPropertyName("signatures")]
        public Dictionary<string, Dictionary<string, string>> Signatures { get; set; }
    }
}