From 71568ad919bed78cc06bb2b21f504f228632748c Mon Sep 17 00:00:00 2001 From: Grabacr07 Date: Sat, 8 Oct 2016 01:58:12 +0900 Subject: [PATCH] =?UTF-8?q?10/5=20=E3=82=A2=E3=83=83=E3=83=97=E3=83=87?= =?UTF-8?q?=E3=83=BC=E3=83=88=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EventMapHpViewer/Models/MapInfoProxy.cs | 4 ++-- EventMapHpViewer/Models/Raw/member_mapinfo.cs | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/EventMapHpViewer/Models/MapInfoProxy.cs b/EventMapHpViewer/Models/MapInfoProxy.cs index cfe9639..d3d0043 100644 --- a/EventMapHpViewer/Models/MapInfoProxy.cs +++ b/EventMapHpViewer/Models/MapInfoProxy.cs @@ -46,11 +46,11 @@ public MapInfoProxy() proxy.ApiSessionSource .Where(s => s.Request.PathAndQuery == "/kcsapi/api_get_member/mapinfo") - .TryParse() + .TryParse() .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); }); diff --git a/EventMapHpViewer/Models/Raw/member_mapinfo.cs b/EventMapHpViewer/Models/Raw/member_mapinfo.cs index 7c53a1c..50d9e3f 100644 --- a/EventMapHpViewer/Models/Raw/member_mapinfo.cs +++ b/EventMapHpViewer/Models/Raw/member_mapinfo.cs @@ -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; } @@ -8,5 +13,4 @@ public class member_mapinfo public int api_defeat_count { get; set; } public Api_Eventmap api_eventmap { get; set; } } - }