setSendingMsisdn(entry.getSender() == null? "-1" : entry.getSender().getMsisdn()+"");
// destination selection
Long destinationMsisdn = entry.getDestinationMsisdn();
UserSet destinationUserSet = entry.getDestinationUserSet();
User destinationUser = entry.getDestinationUser();
// set destination fields and radio buttons according to not-null fields
if(entry.getDestinationContact() == 1){
setDestinationSelection(2);
setCountryCode("43");
} else if(entry.getDestinationUserSet() != null || entry.getCurrentUserSetAsDestination() == 1){
setDestinationSelection(3);
setUserSetId(entry.getDestinationUserSet() != null ? entry.getDestinationUserSet().getId() : -2);
setCountryCode("43");
} else if(entry.getDestinationUser() != null){
setDestinationSelection(4);
setUserId(entry.getDestinationUser().getId());
setCountryCode("43");
} else if (entry.getDestinationMsisdn() != null){
setDestinationSelection(5);
setUserSetId(-1L);
setCountryCode(UserManager.countryCode(entry.getDestinationMsisdn()));
setMobileNumber(UserManager.mobileNumber(entry.getDestinationMsisdn()));
} else { // the sender of the request is also the receiver
setCountryCode("43");
setDestinationSelection(1);
}
setCountryCode(UserManager.countryCode(destinationMsisdn));
setMobileNumber(UserManager.mobileNumber(destinationMsisdn));
setUserId(destinationUser == null ? null : destinationUser.getId());
setUserName(destinationUser == null ? null : destinationUser.getUsername());
setUserSetId(destinationUserSet == null ? null : destinationUserSet.getId());
setDelayInSeconds(entry.getDelayInSeconds());
}