File.cs
1.35 KB
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
41
42
43
using Contentful.Core.Configuration;
using Contentful.Core.Models.Management;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Contentful.Core.Models
{
/// <summary>
/// Represents information about the actual binary file of an <see cref="Asset"/>.
/// </summary>
public class File
{
/// <summary>
/// The original name of the file.
/// </summary>
public string FileName { get; set; }
/// <summary>
/// The content type of the data contained within this file.
/// </summary>
public string ContentType { get; set; }
/// <summary>
/// An absolute URL to this file.
/// </summary>
public string Url { get; set; }
/// <summary>
/// The url to upload this file from.
/// </summary>
[JsonProperty("upload")]
public string UploadUrl { get; set; }
/// <summary>
/// A reference to a SystemProperties metadata object with a type of upload.
/// </summary>
[JsonProperty("uploadFrom")]
public UploadReference UploadReference { get; set; }
/// <summary>
/// Detailed information about the file stored by Contentful.
/// </summary>
public FileDetails Details { get; set; }
}
}