Запись на стене.
Inheritance: MediaAttachment
Esempio n. 1
0
File: Wall.cs Progetto: Bobruk/vk
        // TODO add properties, 

        internal static Wall FromJson(VkResponse response)
        {
            var wall = new Wall();

            wall.Id = response["id"];
            wall.FromId = response["from_id"];
            wall.ToId = response["to_id"];
            wall.Date = response["date"];
            wall.PostType = response["post_type"];
            wall.Text = response["text"];

            wall.Attachments = response["attachments"];
            wall.Comments = response["comments"];
            wall.Likes = response["likes"];
            wall.Reposts = response["reposts"];
            wall.PostSource = response["post_source"];

            return wall;
        }
Esempio n. 2
0
File: Wall.cs Progetto: kadkin/vk
		internal static Wall FromJson(VkResponse response)
		{
			var wall = new Wall
			{
				Id = response["id"],
				FromId = response["from_id"],
				ToId = response["to_id"],
				Date = response["date"],
				PostType = response["post_type"],
				Text = response["text"],

				Attachments = response["attachments"],
				Comments = response["comments"],
				Likes = response["likes"],
				Reposts = response["reposts"],
				PostSource = response["post_source"],
				Geo = response["geo"],
				SignerId = response["signer_id"],
				CopyOwnerId = response["copy_owner_id "],
				CopyPostId = response["copy_post_id"],
				CopyText = response["copy_text"]
			};

			return wall;
		}