Ссылки в группе
Beispiel #1
0
        internal static ExternalLink FromJson(VkResponse response)
        {
            var contact = new ExternalLink();

            contact.Id = response["id"];
            contact.Url = response["url"];
            contact.Name = response["name"];
            contact.Description = response["desc"];
            contact.Photo50 = response["photo_50"];
            contact.Photo100 = response["photo_100"]; ;

            return contact;
        }
Beispiel #2
0
        internal static ExternalLink FromJson(VkResponse response)
        {
            var contact = new ExternalLink();

            contact.Id          = response["id"];
            contact.Url         = response["url"];
            contact.Name        = response["name"];
            contact.Description = response["desc"];
            contact.Photo50     = response["photo_50"];
            contact.Photo100    = response["photo_100"];;

            return(contact);
        }
Beispiel #3
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static ExternalLink FromJson(VkResponse response)
        {
            var contact = new ExternalLink
            {
                Id          = response["id"],
                Uri         = response["url"],
                Name        = response["name"] ?? response["title"],
                Description = response["desc"] ?? response["description"],
                Photo50     = response["photo_50"],
                Photo100    = response["photo_100"]
            };

            return(contact);
        }
Beispiel #4
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static ExternalLink FromJson(VkResponse response)
        {
            var contact = new ExternalLink
            {
                Id = response["id"],
                Uri = response["url"],
                Name = response["name"] ?? response["title"],
                Description = response["desc"] ?? response["description"],
                Photo50 = response["photo_50"],
                Photo100 = response["photo_100"]
            };

            return contact;
        }
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response"> Ответ сервера. </param>
        /// <returns> </returns>
        public static ExternalLink FromJson(VkResponse response)
        {
            var contact = new ExternalLink
            {
                Id                = response[key : "id"]
                , Uri             = response[key : "url"]
                , Name            = response[key : "name"] ?? response[key : "title"]
                , Description     = response[key : "desc"] ?? response[key : "description"]
                , Photo50         = response[key : "photo_50"]
                , Photo100        = response[key : "photo_100"]
                , EditTitle       = response[key : "edit_title"]
                , ImageProcessing = response[key : "image_processing"]
            };

            return(contact);
        }