//------------------------------------------------------------------------------ public virtual void BrowseGameProductListByFilter() { ResponseGameProductList wrapper = new ResponseGameProductList(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-product/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"); GameProductResult result = api.BrowseGameProductListByFilter(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); }
//------------------------------------------------------------------------------ public virtual void GetGameProductListByUrl() { string _url = (string)util.GetParamValue(_context, "url"); ResponseGameProductList wrapper = new ResponseGameProductList(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-product/get/by-url"; List<GameProduct> objs = api.GetGameProductListByUrl( _url ); // get data wrapper.data = objs; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void GetGameProductListByUuidByGameId() { string _uuid = (string)util.GetParamValue(_context, "uuid"); string _game_id = (string)util.GetParamValue(_context, "game_id"); ResponseGameProductList wrapper = new ResponseGameProductList(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-product/get/by-uuid/by-game-id"; List<GameProduct> objs = api.GetGameProductListByUuidByGameId( _uuid , _game_id ); // get data wrapper.data = objs; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void GetGameProductList() { ResponseGameProductList wrapper = new ResponseGameProductList(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-product/get"; List<GameProduct> objs = api.GetGameProductList( ); // get data wrapper.data = objs; util.SerializeTypeToResponse(_format, _context, wrapper); }