Пример #1
0
        //------------------------------------------------------------------------------
        public virtual void BrowseGameVideoListByFilter()
        {
            ResponseGameVideoList wrapper = new ResponseGameVideoList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-video/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");

            GameVideoResult result = api.BrowseGameVideoListByFilter(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);
        }
Пример #2
0
        //------------------------------------------------------------------------------
        public virtual void GetGameVideoListByUrl()
        {
            string _url = (string)util.GetParamValue(_context, "url");

            ResponseGameVideoList wrapper = new ResponseGameVideoList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-video/get/by-url";

            List<GameVideo> objs = api.GetGameVideoListByUrl(
                _url
            );

            // get data
            wrapper.data = objs;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Пример #3
0
        //------------------------------------------------------------------------------
        public virtual void GetGameVideoListByUuidByExternalId()
        {
            string _uuid = (string)util.GetParamValue(_context, "uuid");
            string _external_id = (string)util.GetParamValue(_context, "external_id");

            ResponseGameVideoList wrapper = new ResponseGameVideoList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-video/get/by-uuid/by-external-id";

            List<GameVideo> objs = api.GetGameVideoListByUuidByExternalId(
                _uuid
                , _external_id
            );

            // get data
            wrapper.data = objs;

            util.SerializeTypeToResponse(_format, _context, wrapper);
        }
Пример #4
0
        //------------------------------------------------------------------------------
        public virtual void GetGameVideoList()
        {
            ResponseGameVideoList wrapper = new ResponseGameVideoList();
            wrapper.message = "Success";
            wrapper.code = 0;
            wrapper.action = "game-video/get";

            List<GameVideo> objs = api.GetGameVideoList(
            );

            // get data
            wrapper.data = objs;

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