Merge pull request #31 from fuji97/fix-api-beatsaver

Update OneClickInstaller models to support newest changes to BeatSaver's API
This commit is contained in:
Assistant 2019-07-10 13:30:47 -06:00 committed by GitHub
commit ebf30ac9db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,31 @@ 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; }