Ejemplo n.º 1
0
 internal void sendContactPhoneChangeMessage(String username, MSNEnumerations.PhoneTypes type, String newNumber)
 {
     if (PhoneNumberChanged != null)
     {
         PhoneNumberChanged(username, type, newNumber);
     }
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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 + ")");
     }
 }