66using System . Threading . Tasks ;
77using Contentstack . Core . Configuration ;
88using Contentstack . Core . Internals ;
9+ using Contentstack . Utils . Interfaces ;
910using Newtonsoft . Json ;
1011using Newtonsoft . Json . Linq ;
1112
@@ -14,7 +15,7 @@ namespace Contentstack.Core.Models
1415 /// <summary>
1516 /// Assets refer to all the media files (images, videos, PDFs, audio files, and so on) uploaded in your Contentstack repository for future use
1617 /// </summary>
17- public class Asset
18+ public class Asset : IEmbeddedObject
1819 {
1920 #region Internal & Private Properties
2021 private Dictionary < string , object > _ObjectAttributes = new Dictionary < string , object > ( ) ;
@@ -90,10 +91,16 @@ public string Url
9091 }
9192
9293 /// <summary>
93- /// This is Entry Uid of an entry .
94+ /// This is Asset Uid of an Asset .
9495 /// </summary>
9596 public string Uid { get ; set ; }
9697
98+ /// <summary>
99+ /// This is Asset type uid.
100+ /// </summary>
101+ [ JsonProperty ( propertyName : "_content_type_uid" ) ]
102+ public string ContentTypeUid { get ; set ; }
103+
97104 /// <summary>
98105 /// The size of the file in bytes.
99106 /// </summary>
@@ -103,15 +110,18 @@ public string Url
103110 /// <summary>
104111 /// The original name of the file.
105112 /// </summary>
106- public string FileName { get ; set ; }
113+ public string FileName { get ; set ; }
107114
115+ /// <summary>
116+ /// This is Asset description.
117+ /// </summary>
108118 public string Description { get ; set ; }
109119
110120 /// <summary>
111121 /// Set array of Tags
112122 /// </summary>
113- public Object [ ] Tags { get ; set ; }
114-
123+ public Object [ ] Tags { get ; set ; }
124+
115125 #region Internal Constructors
116126 internal Asset ( ContentstackClient stack , string uid )
117127 {
0 commit comments