blob: 5530cc3c593e5b4f6385f1ab21baf3783d775371 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
using System.Text.Json.Serialization;
namespace LibMatrix.Homeservers.ImplementationDetails.Synapse.Models.Responses;
public class SynapseAdminUserMediaResult {
[JsonPropertyName("total")]
public int Total { get; set; }
[JsonPropertyName("next_token")]
public string? NextToken { get; set; }
[JsonPropertyName("media")]
public List<MediaInfo> Media { get; set; } = new();
public class MediaInfo {
[JsonPropertyName("created_ts")]
public long CreatedTimestamp { get; set; }
[JsonPropertyName("last_access_ts")]
public long? LastAccessTimestamp { get; set; }
[JsonPropertyName("media_id")]
public string MediaId { get; set; }
[JsonPropertyName("media_length")]
public int MediaLength { get; set; }
[JsonPropertyName("media_type")]
public string MediaType { get; set; }
[JsonPropertyName("quarantined_by")]
public string? QuarantinedBy { get; set; }
[JsonPropertyName("safe_from_quarantine")]
public bool SafeFromQuarantine { get; set; }
[JsonPropertyName("upload_name")]
public string UploadName { get; set; }
}
}
|