Update OneClickInstaller models to support newest changes to BeatSaver's API

This commit is contained in:
Federico "Fuji" Rapetti 2019-07-09 22:12:50 +02:00
parent 5c3b13f1c5
commit 7183377e9e

View file

@ -247,7 +247,7 @@ namespace ModAssistant
public class Metadata
{
public Difficulties difficulties { get; set; }
public string[] characteristics { get; set; }
public Characteristic[] characteristics { get; set; }
public string songName { get; set; }
public string songSubName { get; set; }
public string songAuthorName { get; set; }
@ -255,6 +255,28 @@ namespace ModAssistant
public double bpm { get; set; }
}
public class Characteristic {
public string name { get; set; }
public CharacteristicDifficulties difficulties { get; set; }
}
public class CharacteristicDifficulties {
public Difficulty easy { get; set; }
public Difficulty normal { get; set; }
public Difficulty hard { get; set; }
public Difficulty expert { get; set; }
public Difficulty expertPlus { get; set; }
}
public class Difficulty {
public double duration { get; set; }
public double length { get; set; }
public double bombs { get; set; }
public double notes { get; set; }
public double obstacles { get; set; }
public double njs { get; set; }
}
public class Stats
{
public int downloads { get; set; }