Наследование: VkNet.Model.Attachments.MediaAttachment
Пример #1
0
		/// <summary>
		/// Разобрать из json.
		/// </summary>
		/// <param name="response">Ответ сервера.</param>
		/// <returns></returns>
		internal static MarketAlbum FromJson(VkResponse response)
		{
			var application = new MarketAlbum
			{
				Id = response["id"],
				OwnerId = response["owner_id"],
				Title = response["title"],
				Photo = response["photo"],
				Count = response["count"],
				UpdatedTime = response["updated_time"]
			};

			return application;
		}
Пример #2
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static MarketAlbum FromJson(VkResponse response)
        {
            var application = new MarketAlbum
            {
                Id          = response["id"],
                OwnerId     = response["owner_id"],
                Title       = response["title"],
                Photo       = response["photo"],
                Count       = response["count"],
                UpdatedTime = response["updated_time"]
            };

            return(application);
        }