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 }
public IvrBalanceInfo(BalanceInfo info, BalanceType type) { Amount = info.Amount; Type = (IvrBalanceType)(int)type; }