private RegistryResponse badResponse(RegistryStatus status) { RegistryResponse response = new RegistryResponse(); response.status = status; return(response); }
private RegistryResponse okResponse(List <SensorRegistryRecord> data) { RegistryResponse response = new RegistryResponse(); response.status = RegistryStatus.ok; response.listData = data; return(response); }
private RegistryResponse okResponse(SensorRegistryRecord data) { RegistryResponse response = new RegistryResponse(); response.status = RegistryStatus.ok; response.singleData = data; return(response); }