示例#1
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static CropPhoto FromJson(VkResponse response)
        {
            var cropPhoto = new CropPhoto
            {
                Photo = response["photo"],
                Crop  = response["crop"],
                Rect  = response["rect"]
            };

            return(cropPhoto);
        }
示例#2
0
文件: CropPhoto.cs 项目: kadkin/vk
		/// <summary>
		/// Разобрать из json.
		/// </summary>
		/// <param name="response">Ответ сервера.</param>
		/// <returns></returns>
		internal static CropPhoto FromJson(VkResponse response)
		{
			var cropPhoto = new CropPhoto
			{
				Photo = response["photo"],
				Crop = response["crop"],
				Rect = response["rect"]
			};

			return cropPhoto;
		}