Адрес сервера для загрузки фотографий
Exemple #1
0
        internal static UploadServerInfo FromJson(VkResponse response)
        {
            var info = new UploadServerInfo();

            info.UploadUrl = response["upload_url"];
            info.AlbumId   = Utilities.GetNullableLongId(response["album_id"] ?? response["aid"]);
            info.UserId    = Utilities.GetNullableLongId(response["user_id"] ?? response["mid"]);

            return(info);
        }
Exemple #2
0
        internal static UploadServerInfo FromJson(VkResponse response)
        {
            var info = new UploadServerInfo();

            info.UploadUrl = response["upload_url"];
            info.AlbumId = Utilities.GetNullableLongId(response["album_id"] ?? response["aid"]);
            info.UserId = Utilities.GetNullableLongId(response["user_id"] ?? response["mid"]);

            return info;
        }
Exemple #3
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static UploadServerInfo FromJson(VkResponse response)
        {
            var info = new UploadServerInfo
            {
                UploadUrl = response["upload_url"],
                AlbumId = Utilities.GetNullableLongId(response["album_id"] ?? response["aid"]),
                UserId = Utilities.GetNullableLongId(response["user_id"] ?? response["message_id"] ?? response["mid"])
            };

            return info;
        }
Exemple #4
0
        /// <summary>
        /// Разобрать из json.
        /// </summary>
        /// <param name="response">Ответ сервера.</param>
        /// <returns></returns>
        public static UploadServerInfo FromJson(VkResponse response)
        {
            var info = new UploadServerInfo
            {
                UploadUrl = response["upload_url"],
                AlbumId   = Utilities.GetNullableLongId(response["album_id"] ?? response["aid"]),
                UserId    = Utilities.GetNullableLongId(response["user_id"] ?? response["message_id"] ?? response["mid"])
            };

            return(info);
        }