Запись на стене.
Inheritance: MediaAttachment
Beispiel #1
0
Datei: Wall.cs Projekt: 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;
        }
Beispiel #2
0
Datei: Wall.cs Projekt: 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;
		}