//------------------------------------------------------------------------------ public virtual void CountProfileByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseProfileInt wrapper = new ResponseProfileInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile/count/by-uuid"; int i = api.CountProfileByUuid( _uuid ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountProfile() { ResponseProfileInt wrapper = new ResponseProfileInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile/count"; int i = api.CountProfile( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountProfileByUsernameByHash() { string _username = (string)util.GetParamValue(_context, "username"); string _hash = (string)util.GetParamValue(_context, "hash"); ResponseProfileInt wrapper = new ResponseProfileInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile/count/by-username/by-hash"; int i = api.CountProfileByUsernameByHash( _username , _hash ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }