public IvrBalanceInfo(BalanceInfo info, BalanceType type)
 {
    Amount = info.Amount;
    if (type == BalanceType.Available)
       Type = IvrBalanceType.Available;
    else if(type == BalanceType.Phone)
       Type = IvrBalanceType.Phone
    
    // here you have to handle the other values and set the default
    // values for the Type Property or it will take the default value
    // if you not set it
 }
Exemplo n.º 2
0
 public IvrBalanceInfo(BalanceInfo info, BalanceType type)
 {
     Amount = info.Amount;
     Type   = (IvrBalanceType)(int)type;
 }