//------------------------------------------------------------------------------ public virtual void CountProfileAttribute() { ResponseProfileAttributeInt wrapper = new ResponseProfileAttributeInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile-attribute/count"; int i = api.CountProfileAttribute( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountProfileAttributeByType() { int _type = int.Parse(util.GetParamValue(_context, "type")); ResponseProfileAttributeInt wrapper = new ResponseProfileAttributeInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile-attribute/count/by-type"; int i = api.CountProfileAttributeByType( _type ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountProfileAttributeByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseProfileAttributeInt wrapper = new ResponseProfileAttributeInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile-attribute/count/by-uuid"; int i = api.CountProfileAttributeByUuid( _uuid ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }