internal void sendContactPhoneChangeMessage(String username, MSNEnumerations.PhoneTypes type, String newNumber) { if (PhoneNumberChanged != null) { PhoneNumberChanged(username, type, newNumber); } }
public void setPhone(MSNEnumerations.PhoneTypes phoneType, String value) { if (phoneType == MSNEnumerations.PhoneTypes.mob) { mob = value; } else if (phoneType == MSNEnumerations.PhoneTypes.phh) { phh = value; } else if (phoneType == MSNEnumerations.PhoneTypes.phm) { phm = value; } else if (phoneType == MSNEnumerations.PhoneTypes.phw) { phw = value; } else { throw new Exception("Unknown PhoneType in MSNContactsList.Contact.setPhone(" + phoneType + ", " + value + ")"); } controller.sendContactPhoneChangeMessage(username, phoneType, value); }
public String getPhone(MSNEnumerations.PhoneTypes phoneType) { if (phoneType == MSNEnumerations.PhoneTypes.mob) { return(mob); } else if (phoneType == MSNEnumerations.PhoneTypes.phh) { return(phh); } else if (phoneType == MSNEnumerations.PhoneTypes.phm) { return(phm); } else if (phoneType == MSNEnumerations.PhoneTypes.phw) { return(phw); } else { throw new Exception("Unknown PhoneType in MSNContactsList.Contact.getPhone(" + phoneType + ")"); } }