Example #1
0
 /// <summary>
 /// Deserialize the object
 /// </summary>
 public virtual void DeserializeJson(JToken inputObject)
 {
     if (inputObject != null && inputObject.Type != JTokenType.Null)
     {
         JToken filesSequence = ((JToken)inputObject["Files"]);
         if (filesSequence != null && filesSequence.Type != JTokenType.Null)
         {
             foreach (JToken filesValue in ((JArray)filesSequence))
             {
                 MediaUploadResult mediaUploadResult = new MediaUploadResult();
                 mediaUploadResult.DeserializeJson(filesValue);
                 this.Files.Add(mediaUploadResult);
             }
         }
     }
 }
Example #2
0
 /// <summary>
 /// Deserialize the object
 /// </summary>
 public virtual void DeserializeJson(JToken inputObject)
 {
     if (inputObject != null && inputObject.Type != JTokenType.Null)
     {
         JToken filesSequence = ((JToken)inputObject["Files"]);
         if (filesSequence != null && filesSequence.Type != JTokenType.Null)
         {
             foreach (JToken filesValue in ((JArray)filesSequence))
             {
                 MediaUploadResult mediaUploadResult = new MediaUploadResult();
                 mediaUploadResult.DeserializeJson(filesValue);
                 this.Files.Add(mediaUploadResult);
             }
         }
     }
 }