|
| 1 | +using System.Text.Json.Serialization; |
| 2 | + |
| 3 | +namespace ScryfallApi.Client.Models; |
| 4 | + |
| 5 | +public class BulkDataItem : BaseItem |
| 6 | +{ |
| 7 | + /// <summary>The Content-Encoding encoding that will be used to transmit this file when you download it.</summary> |
| 8 | + [JsonPropertyName("content_encoding")] |
| 9 | + public string ContentEncoding { get; set; } |
| 10 | + |
| 11 | + /// <summary>The MIME type of this file.</summary> |
| 12 | + [JsonPropertyName("content_type")] |
| 13 | + public string ContentType { get; set; } |
| 14 | + |
| 15 | + /// <summary>A human-readable description for this file.</summary> |
| 16 | + [JsonPropertyName("description")] |
| 17 | + public string Description { get; set; } |
| 18 | + |
| 19 | + /// <summary>The URI that hosts this bulk file for fetching.</summary> |
| 20 | + [JsonPropertyName("download_uri")] |
| 21 | + public Uri DownloadUri { get; set; } |
| 22 | + |
| 23 | + /// <summary>The size of this file in integer bytes.</summary> |
| 24 | + [JsonPropertyName("compressed_size")] |
| 25 | + public long FileSizeInBytes { get; set; } |
| 26 | + |
| 27 | + /// <summary>A unique ID for this bulk item.</summary> |
| 28 | + [JsonPropertyName("id")] |
| 29 | + public Guid Id { get; set; } |
| 30 | + |
| 31 | + /// <summary>The time when this file was last updated.</summary> |
| 32 | + [JsonPropertyName("updated_at")] |
| 33 | + public DateTimeOffset LastUpdated { get; set; } |
| 34 | + |
| 35 | + /// <summary>A human-readable name for this file.</summary> |
| 36 | + [JsonPropertyName("name")] |
| 37 | + public string Name { get; set; } |
| 38 | + |
| 39 | + /// <summary>A computer-readable string for the kind of bulk item.</summary> |
| 40 | + [JsonPropertyName("type")] |
| 41 | + public string Type { get; set; } |
| 42 | + |
| 43 | + /// <summary>The Scryfall API URI for this file.</summary> |
| 44 | + [JsonPropertyName("uri")] |
| 45 | + public Uri Uri { get; set; } |
| 46 | +} |
0 commit comments