Skip to content

Commit 69d53eb

Browse files
committed
2 parents 4848e4c + 24703a6 commit 69d53eb

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

EventMapHpViewer/Models/MapInfoProxy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ public MapInfoProxy()
4646

4747
proxy.ApiSessionSource
4848
.Where(s => s.Request.PathAndQuery == "/kcsapi/api_get_member/mapinfo")
49-
.TryParse<member_mapinfo[]>()
49+
.TryParse<mapinfo>()
5050
.Subscribe(m =>
5151
{
5252
Debug.WriteLine("MapInfoProxy - member_mapinfo");
53-
this.Maps.MapList = this.CreateMapList(m.Data);
53+
this.Maps.MapList = this.CreateMapList(m.Data.api_map_info);
5454
this.RaisePropertyChanged(() => this.Maps);
5555
});
5656

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
namespace EventMapHpViewer.Models.Raw
22
{
3+
public class mapinfo
4+
{
5+
public member_mapinfo[] api_map_info { get; set; }
6+
}
7+
38
public class member_mapinfo
49
{
510
public int api_id { get; set; }
@@ -8,5 +13,4 @@ public class member_mapinfo
813
public int api_defeat_count { get; set; }
914
public Api_Eventmap api_eventmap { get; set; }
1015
}
11-
1216
}

0 commit comments

Comments
 (0)