Exemple #1
0
 public static void OnFileSuccessTrigger(string json)
 {
     if (_onFileSuccessAction != null)
     {
         var result = FilePickerResult.FromJson(json);
         _onFileSuccessAction(result);
         _onFileSuccessAction = null;
     }
 }
		public static FilePickerResult FromJson(string json)
		{
			var videoResult = new FilePickerResult();
			var dic = Json.Deserialize(json) as Dictionary<string, object>;

			videoResult.OriginalPath = dic.GetStr("originalPath");
			
			videoResult.DisplayName = dic.GetStr("displayName");
			videoResult.Size = (int) (long) dic["size"];
			videoResult.CreatedAt = CommonUtils.DateTimeFromMillisSinceEpoch((long) dic["createdAt"]);

			return videoResult;
		}