Asset.cs
1.41 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
44
45
46
47
48
49
50
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Contentful.Core.Models
{
/// <summary>
/// Represents a single asset of a <see cref="Space"/>.
/// </summary>
public class Asset : IContentfulResource
{
/// <summary>
/// Common system managed metadata properties.
/// </summary>
[JsonProperty("sys")]
public SystemProperties SystemProperties { get; set; }
/// <summary>
/// The description of the asset.
/// </summary>
public string Description { get; set; }
/// <summary>
/// The title of the asset.
/// </summary>
public string Title { get; set; }
/// <summary>
/// Encapsulates information about the binary file of the asset.
/// </summary>
public File File { get; set; }
/// <summary>
/// The titles of the asset per locale.
/// </summary>
public Dictionary<string, string> TitleLocalized { get; set; }
/// <summary>
/// The descriptions of the asset per locale.
/// </summary>
public Dictionary<string, string> DescriptionLocalized { get; set; }
/// <summary>
/// Information about the file in respective language.
/// </summary>
public Dictionary<string, File> FilesLocalized { get; set; }
}
}