Beispiel #1
0
        //------------------------------------------------------------------------------
        public virtual void BrowseProfileGameNetworkListByFilter()
        {
            ResponseProfileGameNetworkList wrapper = new ResponseProfileGameNetworkList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "profile-game-network/browse/by-filter";

            SearchFilter obj = new SearchFilter();
            obj.page = Convert.ToInt32(util.GetParamValue(_context, "page"));
            obj.page_size = Convert.ToInt32(util.GetParamValue(_context, "page-size"));
            obj.filter = util.GetParamValue(_context, "filter");

            ProfileGameNetworkResult result = api.BrowseProfileGameNetworkListByFilter(obj);
            wrapper.info.Add("total_rows", result.total_rows);
            wrapper.info.Add("total_pages", result.total_pages);
            wrapper.info.Add("page", result.page);
            wrapper.info.Add("page_size", result.page_size);

            // get data
            wrapper.data = result.data;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Beispiel #2
0
        //------------------------------------------------------------------------------
        public virtual void GetProfileGameNetworkListByNetworkUsernameByGameIdByGameNetworkId()
        {
            string _network_username = (string)util.GetParamValue(_context, "network_username");
            string _game_id = (string)util.GetParamValue(_context, "game_id");
            string _game_network_id = (string)util.GetParamValue(_context, "game_network_id");

            ResponseProfileGameNetworkList wrapper = new ResponseProfileGameNetworkList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "profile-game-network/get/by-network-username/by-game-id/by-game-network-id";

            List<ProfileGameNetwork> objs = api.GetProfileGameNetworkListByNetworkUsernameByGameIdByGameNetworkId(
                _network_username
                , _game_id
                , _game_network_id
            );

            // get data
            wrapper.data = objs;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Beispiel #3
0
        //------------------------------------------------------------------------------
        public virtual void GetProfileGameNetworkListByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

            ResponseProfileGameNetworkList wrapper = new ResponseProfileGameNetworkList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "profile-game-network/get/by-uuid";

            List<ProfileGameNetwork> objs = api.GetProfileGameNetworkListByUuid(
                _uuid
            );

            // get data
            wrapper.data = objs;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Beispiel #4
0
        //------------------------------------------------------------------------------
        public virtual void GetProfileGameNetworkList()
        {
            ResponseProfileGameNetworkList wrapper = new ResponseProfileGameNetworkList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "profile-game-network/get";

            List<ProfileGameNetwork> objs = api.GetProfileGameNetworkList(
            );

            // get data
            wrapper.data = objs;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }