Информация о документе. См. описание .
Inheritance: MediaAttachment
Exemplo n.º 1
0
        internal static Document FromJson(VkResponse response)
        {
            var document = new Document();

            document.Id = response["did"];
            document.OwnerId = response["owner_id"];
            document.Title = response["title"];
            document.Size = response["size"];
            document.Ext = response["ext"];
            document.Url = response["url"];
            document.Photo100 = response["photo_100"];
            document.Photo130 = response["photo_130"];

            return document;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        internal static Document FromJson(VkResponse response)
        {
	        var document = new Document
	        {
		        Id = response["did"] ?? response["id"],
		        OwnerId = response["owner_id"],
		        Title = response["title"],
		        Size = response["size"],
		        Ext = response["ext"],
		        Url = response["url"],
		        Photo100 = response["photo_100"],
		        Photo130 = response["photo_130"],
		        AccessKey = response["access_key"],
				Date = response["date"],
                Preview = response["preview"]
            };

	        return document;
        }