mirror of
https://onedev.fprog.nl/DiscordClient
synced 2026-03-30 21:54:08 +02:00
Changed properties in Data to be nullable.
This commit is contained in:
parent
94da458afd
commit
5be4d4b557
|
|
@ -6,17 +6,17 @@ namespace DiscordClient.Data;
|
||||||
public class ChannelMessagesResponse
|
public class ChannelMessagesResponse
|
||||||
{
|
{
|
||||||
[JsonPropertyName("id")]
|
[JsonPropertyName("id")]
|
||||||
public string Id { get; set; }
|
public string? Id { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("type")]
|
[JsonPropertyName("type")]
|
||||||
public int Type { get; set; }
|
public int Type { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("content")]
|
[JsonPropertyName("content")]
|
||||||
public string Content { get; set; }
|
public string? Content { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("channel_id")]
|
[JsonPropertyName("channel_id")]
|
||||||
public string ChannelId { get; set; }
|
public string? ChannelId { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("author")]
|
[JsonPropertyName("author")]
|
||||||
public MessageAuthor Author { get; set; }
|
public MessageAuthor? Author { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@ namespace DiscordClient.Data;
|
||||||
public class MessageAuthor
|
public class MessageAuthor
|
||||||
{
|
{
|
||||||
[JsonPropertyName("id")]
|
[JsonPropertyName("id")]
|
||||||
public string Id { get; set; }
|
public string? Id { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("username")]
|
[JsonPropertyName("username")]
|
||||||
public string Username { get; set; }
|
public string? Username { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("global_name")]
|
[JsonPropertyName("global_name")]
|
||||||
public string GlobalName { get; set; }
|
public string? GlobalName { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue