Example #1
0
        private RegistryResponse badResponse(RegistryStatus status)
        {
            RegistryResponse response = new RegistryResponse();

            response.status = status;

            return(response);
        }
Example #2
0
        private RegistryResponse okResponse(List <SensorRegistryRecord> data)
        {
            RegistryResponse response = new RegistryResponse();

            response.status   = RegistryStatus.ok;
            response.listData = data;

            return(response);
        }
Example #3
0
        private RegistryResponse okResponse(SensorRegistryRecord data)
        {
            RegistryResponse response = new RegistryResponse();

            response.status     = RegistryStatus.ok;
            response.singleData = data;

            return(response);
        }