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); }
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; }
/// <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; }
/// <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); }