Esempio n. 1
0
 public SmsInterfaceModified(SmsInterfaceType smsType, string account, string password, int byUserID)
 {
     this.SmsType = smsType;
     this.Account = account;
     this.Password = password;
     this.ByUserID = byUserID;
 }
Esempio n. 2
0
 public SmsInterfaceCreated(SmsInterfaceType smsType, string account, string password, int createBy)
 {
     this.SmsType = smsType;
     this.Account = account;
     this.Password = password;
     this.CreateBy = createBy;
 }
Esempio n. 3
0
        public CreateSmsInterface(SmsInterfaceType smsType, string account, string password, int createBy)
        {
            Check.Argument.IsNotEmpty(account, "account");
            Check.Argument.IsNotEmpty(password, "password");
            Check.Argument.IsNotNegativeOrZero(createBy, "createBy");

            this.SmsType = smsType;
            this.Account = account;
            this.Password = password;
            this.CreateBy = createBy;
        }
Esempio n. 4
0
        public ModifySmsInterface(int smsInterfaceID, SmsInterfaceType smsType, string account, string password, int byUserID)
        {
            Check.Argument.IsNotNegativeOrZero(smsInterfaceID, "smsInterfaceID");
            Check.Argument.IsNotEmpty(account, "account");
            Check.Argument.IsNotEmpty(password, "password");
            Check.Argument.IsNotNegativeOrZero(byUserID, "byUserID");

            this.SmsInterfaceID = smsInterfaceID;
            this.SmsType = smsType;
            this.Account = account;
            this.Password = password;
            this.ByUserID = byUserID;
        }
Esempio n. 5
0
 public static void SetSmsInterface(SmsInterfaceType interfaceType, string account, string password)
 {
     switch (interfaceType)
     {
         case SmsInterfaceType.IHUYI:
             sms = IHUYISms.Initialize(account, password);
             break;
         case SmsInterfaceType.C123:
             sms = C123Sms.Initialize(account, password);
             break;
         default:
             throw new NotImplementedException();
     }
 }