code: public PresenceEnvelope getDevicePresence(String deviceId) throws ApiException {
          ApiResponse<PresenceEnvelope> resp = getDevicePresenceWithHttpInfo(deviceId);
          return resp.getData();
      }
docs: Get device presence information
  Return the presence status of the given device along with the time it was last seen
  @param deviceId Device ID. (required)
  @return PresenceEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body