mirror of
https://github.com/HolographicHat/Yae.git
synced 2025-12-17 11:58:14 +08:00
UIAF 1.1
This commit is contained in:
@@ -149,14 +149,19 @@ public static class Export {
|
|||||||
private static Dictionary<string, object> ExportToUIAFApp(AchievementAllDataNotify data) {
|
private static Dictionary<string, object> ExportToUIAFApp(AchievementAllDataNotify data) {
|
||||||
var output = data.List
|
var output = data.List
|
||||||
.Where(a => a.Status is Status.Finished or Status.RewardTaken)
|
.Where(a => a.Status is Status.Finished or Status.RewardTaken)
|
||||||
.Select(ach => new Dictionary<string, uint> { ["id"] = ach.Id, ["current"] = ach.Current, ["timestamp"] = ach.Timestamp })
|
.Select(ach => new Dictionary<string, uint> {
|
||||||
|
["id"] = ach.Id,
|
||||||
|
["status"] = (uint) ach.Status,
|
||||||
|
["current"] = ach.Current,
|
||||||
|
["timestamp"] = ach.Timestamp,
|
||||||
|
})
|
||||||
.ToList();
|
.ToList();
|
||||||
return new Dictionary<string, object> {
|
return new Dictionary<string, object> {
|
||||||
["info"] = new Dictionary<string, object> {
|
["info"] = new Dictionary<string, object> {
|
||||||
["export_app"] = "YaeAchievement",
|
["export_app"] = "YaeAchievement",
|
||||||
["export_timestamp"] = DateTimeOffset.Now.ToUnixTimeMilliseconds(),
|
["export_timestamp"] = DateTimeOffset.Now.ToUnixTimeMilliseconds(),
|
||||||
["export_app_version"] = GlobalVars.AppVersionName,
|
["export_app_version"] = GlobalVars.AppVersionName,
|
||||||
["uiaf_version"] = "v1.0"
|
["uiaf_version"] = "v1.1"
|
||||||
},
|
},
|
||||||
["list"] = output
|
["list"] = output
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user