Inheritance: MediaAttachment
Ejemplo n.º 1
0
Archivo: Sticker.cs Proyecto: Bobruk/vk
        internal static Sticker FromJson(VkResponse response)
        {
            var sticker = new Sticker();

            sticker.Id = response["id"];
            sticker.ProductId = response["product_id"];
            sticker.Photo64 = response["photo_64"];
            sticker.Photo128 = response["photo_128"];
            sticker.Photo256 = response["photo_256"];
            sticker.Width = response["width"];
            sticker.Height = response["height"];

            return sticker;
        }
Ejemplo n.º 2
0
Archivo: Sticker.cs Proyecto: kadkin/vk
		/// <summary>
		/// Разобрать из json.
		/// </summary>
		/// <param name="response">Ответ сервера.</param>
		/// <returns></returns>
		internal static Sticker FromJson(VkResponse response)
		{
			var sticker = new Sticker
			{
				Id = response["id"],
				ProductId = response["product_id"],
				Photo64 = response["photo_64"],
				Photo128 = response["photo_128"],
				Photo256 = response["photo_256"],
				Photo352 = response["photo_352"],
				Width = response["width"],
				Height = response["height"]
			};

			return sticker;
		}