@@ -48,7 +48,7 @@ private string _Url
4848
4949 internal Dictionary < string , object > _metadata = new Dictionary < string , object > ( ) ;
5050 #endregion
51-
51+
5252 #region Public Properties
5353 /// <summary>
5454 /// Title of an entry
@@ -110,6 +110,22 @@ private string _Url
110110 /// </example>
111111 public Dictionary < string , object > Metadata { get ; set ; }
112112
113+ /// <summary>
114+ /// Set key/value attributes of an current entry instance.
115+ /// </summary>
116+ /// <example>
117+ /// <code>
118+ /// ContentstackClient stack = new ContentstackClinet("api_key", "delivery_token", "environment");
119+ /// Entry entry = stack.ContentType("contentType_id").Entry("entry_uid");
120+ /// entry.Fetch<Product>().ContinueWith((entryResult) => {
121+ /// //Your callback code.
122+ /// //var result = entryResult.Result.Object;
123+ /// });
124+ /// </code>
125+ /// </example>
126+ public Dictionary < string , object > _variant { get ; set ; }
127+
128+
113129 /// <summary>
114130 /// Set key/value attributes of an current entry instance.
115131 /// </summary>
@@ -1380,12 +1396,8 @@ public async Task<T> Fetch<T>()
13801396 headerAll [ "authorization" ] = this . ContentTypeInstance . StackInstance . LivePreviewConfig . ManagementToken ;
13811397 isLivePreview = true ;
13821398 }
1383- else
1384- {
1385- mainJson . Add ( "environment" , this . ContentTypeInstance . StackInstance . Config . Environment ) ;
1386- }
13871399
1388-
1400+ mainJson . Add ( "environment" , this . ContentTypeInstance . StackInstance . Config . Environment ) ;
13891401 foreach ( var kvp in UrlQueries )
13901402 {
13911403 mainJson . Add ( kvp . Key , kvp . Value ) ;
0 commit comments