示例#1
0
        public LongCode AddForwarding(LongCode longCode, string forwardingNumber)
        {
            if (string.IsNullOrEmpty(longCode.Code))
            {
                throw new ArgumentException("Long code number is missing.");
            }

            return(AddForwarding(longCode.Code, forwardingNumber));
        }
示例#2
0
        public LongCode VerifyForwarding(LongCode longCode, string verificationCode)
        {
            if (string.IsNullOrEmpty(longCode.Code))
            {
                throw new ArgumentException("Long code number is missing.");
            }

            int accountId = longCode.AccountId > 0 ? longCode.AccountId : CurrentAccount;

            return(VerifyForwarding(accountId, longCode.Code, verificationCode));
        }
        public void RemoveForwarding(LongCode longCode)
        {
            if (string.IsNullOrEmpty(longCode.Code))
            {
                throw new ArgumentException("Long code number is missing.");
            }

            int accountId = longCode.AccountId > 0 ? longCode.AccountId : CurrentAccount;

            RemoveForwarding(accountId, longCode.Code);
        }