private static UserServerSync deepCopy(UserServerSync source) { if (source == null) { return null; } UserServerSync copy = new UserServerSync(); if (source.getEndpointAttachResponses() != null) { copy.setEndpointAttachResponses(new ArrayList<>(source.getEndpointAttachResponses())); } if (source.getEndpointDetachResponses() != null) { copy.setEndpointDetachResponses(new ArrayList<>(source.getEndpointDetachResponses())); } if (source.getUserAttachNotification() != null) { copy.setUserAttachNotification(new UserAttachNotification( source.getUserAttachNotification().getUserExternalId(), source .getUserAttachNotification().getEndpointAccessToken())); } if (source.getUserAttachResponse() != null) { UserAttachResponse uarSource = source.getUserAttachResponse(); copy.setUserAttachResponse(new UserAttachResponse( uarSource.getResult(), uarSource.getErrorCode(), uarSource.getErrorReason())); } if (source.getUserDetachNotification() != null) { copy.setUserDetachNotification(new UserDetachNotification( source.getUserDetachNotification().getEndpointAccessToken())); } return copy; }
.getUserAttachNotification().getEndpointAccessToken())); if (source.getUserDetachNotification() != null) { sync.setUserDetachNotification(new UserDetachNotification( source.getUserDetachNotification().getEndpointAccessToken()));
return true; if (userResponse.getUserDetachNotification() != null) { return true;
putUtf(buf, nf.getEndpointAccessToken()); if (userSync.getUserDetachNotification() != null) { UserDetachNotification nf = userSync.getUserDetachNotification(); buf.put(USER_DETACH_NOTIFICATION_FIELD_ID); buf.put(NOTHING);