//------------------------------------------------------------------------------ public virtual void BrowseGameProfileContentListByFilter() { ResponseGameProfileContentList wrapper = new ResponseGameProfileContentList(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-profile-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"); GameProfileContentResult result = api.BrowseGameProfileContentListByFilter(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 GetGameProfileContentListByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseGameProfileContentList wrapper = new ResponseGameProfileContentList(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-profile-content/get/by-uuid"; List<GameProfileContent> objs = api.GetGameProfileContentListByUuid( _uuid ); // get data wrapper.data = objs; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void GetGameProfileContentListByGameIdByUsernameByPath() { string _game_id = (string)util.GetParamValue(_context, "game_id"); string _username = (string)util.GetParamValue(_context, "username"); string _path = (string)util.GetParamValue(_context, "path"); ResponseGameProfileContentList wrapper = new ResponseGameProfileContentList(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-profile-content/get/by-game-id/by-username/by-path"; List<GameProfileContent> objs = api.GetGameProfileContentListByGameIdByUsernameByPath( _game_id , _username , _path ); // get data wrapper.data = objs; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void GetGameProfileContentListByGameIdByUsernameByPathByVersionByPlatformByIncrement() { string _game_id = (string)util.GetParamValue(_context, "game_id"); string _username = (string)util.GetParamValue(_context, "username"); 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")); ResponseGameProfileContentList wrapper = new ResponseGameProfileContentList(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-profile-content/get/by-game-id/by-username/by-path/by-version/by-platform/by-increment"; List<GameProfileContent> objs = api.GetGameProfileContentListByGameIdByUsernameByPathByVersionByPlatformByIncrement( _game_id , _username , _path , _version , _platform , _increment ); // get data wrapper.data = objs; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void GetGameProfileContentList() { ResponseGameProfileContentList wrapper = new ResponseGameProfileContentList(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-profile-content/get"; List<GameProfileContent> objs = api.GetGameProfileContentList( ); // get data wrapper.data = objs; util.SerializeTypeToResponse(_format, _context, wrapper); }