Esempio n. 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);
        }
Esempio n. 2
0
		/// <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;
		}