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

            response.status = status;

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

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

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

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

            return(response);
        }