Generate the response block of this request. Careful: it only sets the fields which can be set from the request
(self)
| 1158 | return Block.post_build(self, p, pay) |
| 1159 | |
| 1160 | def get_response(self): |
| 1161 | """Generate the response block of this request. |
| 1162 | Careful: it only sets the fields which can be set from the request |
| 1163 | """ |
| 1164 | res = AlarmCRBlockRes() |
| 1165 | for field in ["AlarmCRType", "LocalAlarmReference"]: |
| 1166 | res.setfieldval(field, self.getfieldval(field)) |
| 1167 | |
| 1168 | res.block_type = self.block_type + 0x8000 |
| 1169 | return res |
| 1170 | |
| 1171 | |
| 1172 | class AlarmCRBlockRes(Block): |
nothing calls this directly
no test coverage detected