Esempio n. 1
0
        public void UpdatePort()
        {
            string member_id     = this.basic.api_member_id;
            string json_response = this.Proxy.proxy(ApiPort.PORT, ApiPort.port(member_id));
            KanColleAPI <KanColle.Member.Port> port = JsonConvert.DeserializeObject <KanColleAPI <KanColle.Member.Port> >(json_response);

            this.Port = port.GetData();
        }
Esempio n. 2
0
        public KanColle.Member.Port GetPort(string member_id)
        {
            try {
                string json_response = this.proxy(ApiPort.PORT, ApiPort.port(member_id));
                KanColleAPI <KanColle.Member.Port> port = JsonConvert.DeserializeObject <KanColleAPI <KanColle.Member.Port> >(json_response);
                return(port.GetData());
            } catch (Exception e) {
#if DEBUG
                Console.WriteLine(e.Message);
#endif
                throw new Exception(e.Message);
            }
        }