Пример #1
0
 public void UpdateGsmNumber(int index, SmsNotificationAddress gsmNumber)
 {
     if (gsmNumber.IsValid())
     {
         validatedGsmNumbers[index] = gsmNumber;
     }
     else
     {
         throw new ArgumentException();
     }
 }
Пример #2
0
 public void AddGsmNumber(SmsNotificationAddress gsmNumber)
 {
     if (gsmNumber.IsValid())
     {
         validatedGsmNumbers.Add(gsmNumber);
     }
     else
     {
         throw new ArgumentException();
     }
 }
Пример #3
0
 public void RemoveGsmNumber(SmsNotificationAddress gsmNumber)
 {
     validatedGsmNumbers.Remove(validatedGsmNumbers.Find(x => x.Address == gsmNumber.Address));
 }