//------------------------------------------------------------------------------ public virtual void CountGameAttributeByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseGameAttributeInt wrapper = new ResponseGameAttributeInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-attribute/count/by-uuid"; int i = api.CountGameAttributeByUuid( _uuid ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountGameAttributeByGameIdByCode() { string _game_id = (string)util.GetParamValue(_context, "game_id"); string _code = (string)util.GetParamValue(_context, "code"); ResponseGameAttributeInt wrapper = new ResponseGameAttributeInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-attribute/count/by-game-id/by-code"; int i = api.CountGameAttributeByGameIdByCode( _game_id , _code ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountGameAttributeByType() { int _type = int.Parse(util.GetParamValue(_context, "type")); ResponseGameAttributeInt wrapper = new ResponseGameAttributeInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-attribute/count/by-type"; int i = api.CountGameAttributeByType( _type ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountGameAttribute() { ResponseGameAttributeInt wrapper = new ResponseGameAttributeInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "game-attribute/count"; int i = api.CountGameAttribute( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }