コード例 #1
0
        public Object GetPlayer(string playerid)
        {
            Player            player  = new Player(playerid);
            PlayerInfoService service = new PlayerInfoService();

            try
            {
                service.Get(player);
            }
            catch (Exception e)
            {
                return(e);
            }
            return(player);
        }
コード例 #2
0
        public Object GetByPosition(string position)
        {
            PlayerInfoLog     players = new PlayerInfoLog();
            PlayerInfoService service = new PlayerInfoService();

            try
            {
                service.Get(players, position);
            }
            catch (Exception e)
            {
                return(e);
            }
            return(players);
        }
コード例 #3
0
        public Object GetAll()
        {
            PlayerInfoLog     players = new PlayerInfoLog();
            PlayerInfoService service = new PlayerInfoService();

            try
            {
                service.Get(players);
            }
            catch (Exception e)
            {
                return(e);
            }
            return(players);
        }