//------------------------------------------------------------------------------ public virtual void CountProfileDeviceByProfileIdByToken() { string _profile_id = (string)util.GetParamValue(_context, "profile_id"); string _token = (string)util.GetParamValue(_context, "token"); ResponseProfileDeviceInt wrapper = new ResponseProfileDeviceInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile-device/count/by-profile-id/by-token"; int i = api.CountProfileDeviceByProfileIdByToken( _profile_id , _token ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountProfileDeviceByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseProfileDeviceInt wrapper = new ResponseProfileDeviceInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile-device/count/by-uuid"; int i = api.CountProfileDeviceByUuid( _uuid ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountProfileDevice() { ResponseProfileDeviceInt wrapper = new ResponseProfileDeviceInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile-device/count"; int i = api.CountProfileDevice( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }