コード例 #1
0
        //---------------------------------------------------------------------------
        #endregion

        #region ---------------------------RegisterInSms---------------------------
        //---------------------------------------------------------------------------
        public static void RegisterInSms(UsersDataEntity usersDataObject)
        {
            UsersDataGlobalOptions userDataModule = UsersDataGlobalOptions.GetType(usersDataObject.ModuleTypeID);
            Languages langID = (Languages)SiteSettings.Languages_DefaultLanguageID;

            SMSNumbersFactory.RegisterInSms(userDataModule.ModuleTypeID, usersDataObject.Mobile, langID, userDataModule.SmsAutomaticActivation);
        }
コード例 #2
0
        //---------------------------------------------------------------------------
        #endregion


        #region ---------------------------RegisterInSms---------------------------
        //---------------------------------------------------------------------------
        public static void RegisterInSms(MessagesEntity msg)
        {
            MessagesModuleOptions msgModule = MessagesModuleOptions.GetType(msg.ModuleTypeID);
            Languages             langID    = (Languages)SiteSettings.Languages_DefaultLanguageID;

            SMSNumbersFactory.RegisterInSms(msg.ModuleTypeID, msg.Mobile, langID, msgModule.SmsAutomaticActivation);
        }