Ejemplo n.º 1
0
        //------------------------------------------------------------------------------
        public virtual void BrowseGameContentListByFilter()
        {
            ResponseGameContentList wrapper = new ResponseGameContentList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-content/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");

            GameContentResult result = api.BrowseGameContentListByFilter(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);
        }
Ejemplo n.º 2
0
        //------------------------------------------------------------------------------
        public virtual void GetGameContentListByUuid()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");

            ResponseGameContentList wrapper = new ResponseGameContentList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-content/get/by-uuid";

            List<GameContent> objs = api.GetGameContentListByUuid(
                _uuid
            );

            // get data
            wrapper.data = objs;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Ejemplo n.º 3
0
        //------------------------------------------------------------------------------
        public virtual void GetGameContentListByGameIdByPath()
        {
            string _game_id = (string)util.GetParamValue(_context, "game_id");
            string _path = (string)util.GetParamValue(_context, "path");

            ResponseGameContentList wrapper = new ResponseGameContentList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-content/get/by-game-id/by-path";

            List<GameContent> objs = api.GetGameContentListByGameIdByPath(
                _game_id
                , _path
            );

            // get data
            wrapper.data = objs;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Ejemplo n.º 4
0
        //------------------------------------------------------------------------------
        public virtual void GetGameContentListByGameIdByPathByVersionByPlatformByIncrement()
        {
            string _game_id = (string)util.GetParamValue(_context, "game_id");
            string _path = (string)util.GetParamValue(_context, "path");
            string _version = (string)util.GetParamValue(_context, "version");
            string _platform = (string)util.GetParamValue(_context, "platform");
            int _increment = int.Parse(util.GetParamValue(_context, "increment"));

            ResponseGameContentList wrapper = new ResponseGameContentList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-content/get/by-game-id/by-path/by-version/by-platform/by-increment";

            List<GameContent> objs = api.GetGameContentListByGameIdByPathByVersionByPlatformByIncrement(
                _game_id
                , _path
                , _version
                , _platform
                , _increment
            );

            // get data
            wrapper.data = objs;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Ejemplo n.º 5
0
        //------------------------------------------------------------------------------
        public virtual void GetGameContentList()
        {
            ResponseGameContentList wrapper = new ResponseGameContentList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-content/get";

            List<GameContent> objs = api.GetGameContentList(
            );

            // get data
            wrapper.data = objs;

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