Beispiel #1
0
        public static string CommitOrThrow_TelNumberRemove(this Data_AppUserFile appUserFile, string TelList)
        {
            Data_AppUserFile_CheckerBase checker = appUserFile.GetCheckerBase();

            if (checker == null)
            {
                throw new ArgumentException("Account not active (4). " + appUserFile.AccountStatusExplained());
            }
            MobileNoHandler            noToRemove = new MobileNoHandler(TelList);
            MobileHandleConfUnconfList existing   = new MobileHandleConfUnconfList();

            existing.Add(appUserFile.MobileNumbers_AllConfirmed__.getVal, true);
            existing.Add(appUserFile.MobileNumbers_AllUnConfirmed__.getVal, false);
            checker.CommitOrThrow_TelNumberRemove(existing, noToRemove);

            existing.Remove(TelList);
            string retString;

            existing.SortAndReturn(out appUserFile.MobileNumbers_AllConfirmed__, out appUserFile.MobileNumbers_AllUnConfirmed__, out retString);
            return(retString);
        }
Beispiel #2
0
        public static void VerifyAllMobileNumbers(MobileNoHandler storedNumbers, string[] telList)
        {
            MobileHandleConfUnconfList list = new MobileHandleConfUnconfList();

            list.Add(storedNumbers.getVal, true);
            foreach (string reqTel in telList)
            {
                if (!list.Conrtains(reqTel))
                {
                    throw new ArgumentException("X-APIMobile not configured");
                }
            }
        }