blob: 13235d93dc70bdf57912b96a3e462d918ca4a57c (
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
|
using System.Text.Json.Serialization;
namespace LibMatrix.Responses;
public class UserDirectoryResponse {
[JsonPropertyName("limited")]
public bool Limited { get; set; }
[JsonPropertyName("results")]
public List<UserDirectoryResult> Results { get; set; }
public class UserDirectoryResult {
[JsonPropertyName("avatar_url")]
public string? AvatarUrl { get; set; }
[JsonPropertyName("display_name")]
public string? DisplayName { get; set; }
[JsonPropertyName("user_id")]
public string UserId { get; set; }
}
}
public class UserDirectoryRequest {
[JsonPropertyName("search_term")]
public string SearchTerm { get; set; }
[JsonPropertyName("limit")]
public int? Limit { get; set; }
}
|