Add JsonConstructor attribute

This commit is contained in:
Salman Ahmed 2021-01-11 08:02:57 +03:00
parent 839f5a7570
commit e99310b59c

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using System;
using Newtonsoft.Json;
namespace osu.Game.Online.Rooms
{
@ -20,6 +21,7 @@ namespace osu.Game.Online.Rooms
/// </summary>
public readonly double? DownloadProgress;
[JsonConstructor]
private BeatmapAvailability(DownloadState state, double? downloadProgress = null)
{
State = state;