Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
veigr committed Oct 7, 2016
2 parents 4848e4c + 24703a6 commit 69d53eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions EventMapHpViewer/Models/MapInfoProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ public MapInfoProxy()

proxy.ApiSessionSource
.Where(s => s.Request.PathAndQuery == "/kcsapi/api_get_member/mapinfo")
.TryParse<member_mapinfo[]>()
.TryParse<mapinfo>()
.Subscribe(m =>
{
Debug.WriteLine("MapInfoProxy - member_mapinfo");
this.Maps.MapList = this.CreateMapList(m.Data);
this.Maps.MapList = this.CreateMapList(m.Data.api_map_info);
this.RaisePropertyChanged(() => this.Maps);
});

Expand Down
6 changes: 5 additions & 1 deletion EventMapHpViewer/Models/Raw/member_mapinfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
namespace EventMapHpViewer.Models.Raw
{
public class mapinfo
{
public member_mapinfo[] api_map_info { get; set; }
}

public class member_mapinfo
{
public int api_id { get; set; }
Expand All @@ -8,5 +13,4 @@ public class member_mapinfo
public int api_defeat_count { get; set; }
public Api_Eventmap api_eventmap { get; set; }
}

}

0 comments on commit 69d53eb

Please sign in to comment.