def get(self, deviceUid, eventId):
if not isinstance(deviceUid, DeviceUid) and isinstance(deviceUid, dict):<EOL><INDENT>deviceUid = DeviceUid(**deviceUid)<EOL><DEDENT>url = "<STR_LIT>" % (deviceUid.typeId, deviceUid.deviceId, eventId)<EOL>r = self._apiClient.get(url)<EOL>if r.status_code == <NUM_LIT:200>:<EOL><INDENT>return LastEvent(**r.json())<EOL><DEDENT>else:<EOL><INDENT>raise ApiException(r)<EOL><DEDENT>
Retrieves the last cached message for specified event from a specific device.