Rename variable

This commit is contained in:
smoogipoo 2018-12-22 15:46:04 +09:00
parent b9ec179713
commit baed0ef3ba
3 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ protected override APIRequest FetchScores(Action<IEnumerable<APIRoomScoreInfo>>
Accuracy = 0.98,
TotalScore = 987654,
TotalAttempts = 13,
CompletedAttempts = 5
CompletedBeatmaps = 5
};
}
}

View File

@ -12,6 +12,6 @@ public class APIRoomScoreInfo : ScoreInfo
public int TotalAttempts { get; set; }
[JsonProperty("completed")]
public int CompletedAttempts { get; set; }
public int CompletedBeatmaps { get; set; }
}
}

View File

@ -71,7 +71,7 @@ protected override IEnumerable<LeaderboardScoreStatistic> GetStatistics(ScoreInf
{
new LeaderboardScoreStatistic(FontAwesome.fa_crosshairs, "Accuracy", string.Format(model.Accuracy % 1 == 0 ? @"{0:P0}" : @"{0:P2}", model.Accuracy)),
new LeaderboardScoreStatistic(FontAwesome.fa_refresh, "Total Attempts", ((APIRoomScoreInfo)model).TotalAttempts.ToString()),
new LeaderboardScoreStatistic(FontAwesome.fa_check, "Completed Beatmaps", ((APIRoomScoreInfo)model).CompletedAttempts.ToString()),
new LeaderboardScoreStatistic(FontAwesome.fa_check, "Completed Beatmaps", ((APIRoomScoreInfo)model).CompletedBeatmaps.ToString()),
};
}