Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/Structures/Messages/Attachment.cs
2017-05-14 14:02:51 +02:00

53 lines
1.1 KiB
C#

using Newtonsoft.Json;
namespace Maki.Structures.Messages
{
/// <summary>
/// Discord API Attachment structure
/// </summary>
internal struct Attachment
{
/// <summary>
/// attachment id
/// </summary>
[JsonProperty("id")]
public ulong Id;
/// <summary>
/// name of file attached
/// </summary>
[JsonProperty("filename")]
public string Filename;
/// <summary>
/// size of file in bytes
/// </summary>
[JsonProperty("size")]
public int Size;
/// <summary>
/// source url of file
/// </summary>
[JsonProperty("url")]
public string Url;
/// <summary>
/// a proxied url of file
/// </summary>
[JsonProperty("proxy_url")]
public string ProxyUrl;
/// <summary>
/// height of file (if image)
/// </summary>
[JsonProperty("height")]
public int? Height;
/// <summary>
/// width of file (if image)
/// </summary>
[JsonProperty("width")]
public int? Width;
}
}