)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » Subscriber (Ia.Ftn.Cl.Models.Business.Nokia)

Public general use code classes and xml files that we've compiled and used over the years:

Subscriber support class for Nokia's Fixed Telecommunications Network (FTN) business model.

    1: using System;
    2: using System.Collections.Generic;
    3:  
    4: namespace Ia.Ftn.Cl.Models.Business.Nokia
    5: {
    6:     ////////////////////////////////////////////////////////////////////////////
    7:  
    8:     /// <summary publish="true">
    9:     /// Subscriber support class for Nokia's Fixed Telecommunications Network (FTN) business model.
   10:     /// </summary>
   11:     /// 
   12:     /// <remarks> 
   13:     /// Copyright � 2014-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   14:     ///
   15:     /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
   16:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   17:     ///
   18:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   19:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   20:     /// 
   21:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   22:     /// 
   23:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   24:     /// </remarks> 
   25:     public class Subscriber
   26:     {
   27:         public Subscriber() { }
   28:  
   29:         ////////////////////////////////////////////////////////////////////////////
   30:  
   31:         /// <summary>
   32:         ///
   33:         /// </summary>
   34:         public static Ia.Ftn.Cl.Models.Nokia.Subscriber ParseFromDictionary(Dictionary<string, string> parameterDictionary)
   35:         {
   36:             string partyId;
   37:             Ia.Ftn.Cl.Models.Nokia.Subscriber subscriber;
   38:  
   39:             subscriber = new Ia.Ftn.Cl.Models.Nokia.Subscriber();
   40:  
   41:             partyId = Ia.Cl.Models.Default.Match(parameterDictionary["SubParty"].ToString(), "<PartyId>(.+)</PartyId>");
   42:  
   43:             subscriber.Id = Ia.Ftn.Cl.Models.Nokia.Subscriber.SubscriberId(partyId);
   44:             subscriber.PartyId = partyId;
   45:  
   46:             subscriber.AlternateOtasRealm = (parameterDictionary.ContainsKey("AlternateOtasRealm")) ? parameterDictionary["AlternateOtasRealm"].ToString() : null;
   47:  
   48:             subscriber._AnonymousCallRej = (parameterDictionary.ContainsKey("AnonymousCallRej")) ? parameterDictionary["AnonymousCallRej"].ToString() : null;
   49:             subscriber._SelectiveCallRejct = (parameterDictionary.ContainsKey("SelectiveCallRejct")) ? parameterDictionary["SelectiveCallRejct"].ToString() : null;
   50:             subscriber._SelectiveCallAcpt = (parameterDictionary.ContainsKey("SelectiveCallAcpt")) ? parameterDictionary["SelectiveCallAcpt"].ToString() : null;
   51:             subscriber._AutomaticCallBack = (parameterDictionary.ContainsKey("AutomaticCallBack")) ? parameterDictionary["AutomaticCallBack"].ToString() : null;
   52:             subscriber._AutomaticRecall = (parameterDictionary.ContainsKey("AutomaticRecall")) ? parameterDictionary["AutomaticRecall"].ToString() : null;
   53:             subscriber._CallingLineId = (parameterDictionary.ContainsKey("CallingLineId")) ? parameterDictionary["CallingLineId"].ToString() : null;
   54:             subscriber._RemoteAccessServer = (parameterDictionary.ContainsKey("RemoteAccessServer")) ? parameterDictionary["RemoteAccessServer"].ToString() : null;
   55:             subscriber._CallBarring = (parameterDictionary.ContainsKey("CallBarring")) ? parameterDictionary["CallBarring"].ToString() : null;
   56:             subscriber._CallBlocking = (parameterDictionary.ContainsKey("CallBlocking")) ? parameterDictionary["CallBlocking"].ToString() : null;
   57:             subscriber._CallBlocking = (parameterDictionary.ContainsKey("CallBlocking")) ? parameterDictionary["CallBlocking"].ToString() : null;
   58:             subscriber._CallTransfer = (parameterDictionary.ContainsKey("CallTransfer")) ? parameterDictionary["CallTransfer"].ToString() : null;
   59:             subscriber._CallWaiting = (parameterDictionary.ContainsKey("CallWaiting")) ? parameterDictionary["CallWaiting"].ToString() : null;
   60:             subscriber._CallForwardingVari = (parameterDictionary.ContainsKey("CallForwardingVari")) ? parameterDictionary["CallForwardingVari"].ToString() : null;
   61:             subscriber._CallForwardingBusy = (parameterDictionary.ContainsKey("CallForwardingBusy")) ? parameterDictionary["CallForwardingBusy"].ToString() : null;
   62:             subscriber._CallForwardingNoAns = (parameterDictionary.ContainsKey("CallForwardingNoAns")) ? parameterDictionary["CallForwardingNoAns"].ToString() : null;
   63:             subscriber._SelectiveCallFwd = (parameterDictionary.ContainsKey("SelectiveCallFwd")) ? parameterDictionary["SelectiveCallFwd"].ToString() : null;
   64:             subscriber._CallForwardingUnreg = (parameterDictionary.ContainsKey("CallForwardingUnreg")) ? parameterDictionary["CallForwardingUnreg"].ToString() : null;
   65:             subscriber._CustomerOrigTrace = (parameterDictionary.ContainsKey("CustomerOrigTrace")) ? parameterDictionary["CustomerOrigTrace"].ToString() : null;
   66:             subscriber._NuisanceCallTrace = (parameterDictionary.ContainsKey("NuisanceCallTrace")) ? parameterDictionary["NuisanceCallTrace"].ToString() : null;
   67:             subscriber._DoNotDisturb = (parameterDictionary.ContainsKey("DoNotDisturb")) ? parameterDictionary["DoNotDisturb"].ToString() : null;
   68:             subscriber._MsgWaitingInd = (parameterDictionary.ContainsKey("MsgWaitingInd")) ? parameterDictionary["MsgWaitingInd"].ToString() : null;
   69:             subscriber._SimultaneousRinging = (parameterDictionary.ContainsKey("SimultaneousRinging")) ? parameterDictionary["SimultaneousRinging"].ToString() : null;
   70:             subscriber._WebPortal = (parameterDictionary.ContainsKey("WebPortal")) ? parameterDictionary["WebPortal"].ToString() : null;
   71:             subscriber._ConferenceCalling = (parameterDictionary.ContainsKey("ConferenceCalling")) ? parameterDictionary["ConferenceCalling"].ToString() : null;
   72:             subscriber._FlashOrigServices = (parameterDictionary.ContainsKey("FlashOrigServices")) ? parameterDictionary["FlashOrigServices"].ToString() : null;
   73:             subscriber._CarrierSelection = (parameterDictionary.ContainsKey("CarrierSelection")) ? parameterDictionary["CarrierSelection"].ToString() : null;
   74:             subscriber._RingbackWhenFree = (parameterDictionary.ContainsKey("RingbackWhenFree")) ? parameterDictionary["RingbackWhenFree"].ToString() : null;
   75:             subscriber._MultipleRingPattern = (parameterDictionary.ContainsKey("MultipleRingPattern")) ? parameterDictionary["MultipleRingPattern"].ToString() : null;
   76:             subscriber._CallForwardingLocal = (parameterDictionary.ContainsKey("CallForwardingLocal")) ? parameterDictionary["CallForwardingLocal"].ToString() : null;
   77:             subscriber._RemoteAccessServices = (parameterDictionary.ContainsKey("RemoteAccessServices")) ? parameterDictionary["RemoteAccessServices"].ToString() : null;
   78:             subscriber._VoiceMail = (parameterDictionary.ContainsKey("VoiceMail")) ? parameterDictionary["VoiceMail"].ToString() : null;
   79:             subscriber._InterceptReferral = (parameterDictionary.ContainsKey("InterceptReferral")) ? parameterDictionary["InterceptReferral"].ToString() : null;
   80:             subscriber._DialingPlan = (parameterDictionary.ContainsKey("DialingPlan")) ? parameterDictionary["DialingPlan"].ToString() : null;
   81:             subscriber._HSSPrivateId = (parameterDictionary.ContainsKey("HSSPrivateId")) ? parameterDictionary["HSSPrivateId"].ToString() : null;
   82:             subscriber._HSSPublicIdCustom = (parameterDictionary.ContainsKey("HSSPublicIdCustom")) ? parameterDictionary["HSSPublicIdCustom"].ToString() : null;
   83:             subscriber._AcctCodes = (parameterDictionary.ContainsKey("AcctCodes")) ? parameterDictionary["AcctCodes"].ToString() : null;
   84:             subscriber._SeqRinging = (parameterDictionary.ContainsKey("SeqRinging")) ? parameterDictionary["SeqRinging"].ToString() : null;
   85:             subscriber._AuthCodeService = (parameterDictionary.ContainsKey("AuthCodeService")) ? parameterDictionary["AuthCodeService"].ToString() : null;
   86:             subscriber._MLHGNoHuntMember = (parameterDictionary.ContainsKey("MLHGNoHuntMember")) ? parameterDictionary["MLHGNoHuntMember"].ToString() : null;
   87:             subscriber._MultilineHuntGroup = (parameterDictionary.ContainsKey("MultilineHuntGroup")) ? parameterDictionary["MultilineHuntGroup"].ToString() : null;
   88:             subscriber._CallPickupOrig = (parameterDictionary.ContainsKey("CallPickupOrig")) ? parameterDictionary["CallPickupOrig"].ToString() : null;
   89:             subscriber._CallPickupTerm = (parameterDictionary.ContainsKey("CallPickupTerm")) ? parameterDictionary["CallPickupTerm"].ToString() : null;
   90:             subscriber._Attendant = (parameterDictionary.ContainsKey("Attendant")) ? parameterDictionary["Attendant"].ToString() : null;
   91:             subscriber._AttendantServer = (parameterDictionary.ContainsKey("AttendantServer")) ? parameterDictionary["AttendantServer"].ToString() : null;
   92:             subscriber._CallPark = (parameterDictionary.ContainsKey("CallPark")) ? parameterDictionary["CallPark"].ToString() : null;
   93:             subscriber._DirectedGroup = (parameterDictionary.ContainsKey("DirectedGroup")) ? parameterDictionary["DirectedGroup"].ToString() : null;
   94:             subscriber._RemoteUser = (parameterDictionary.ContainsKey("RemoteUser")) ? parameterDictionary["RemoteUser"].ToString() : null;
   95:             subscriber._TransferToUsersVM = (parameterDictionary.ContainsKey("TransferToUsersVM")) ? parameterDictionary["TransferToUsersVM"].ToString() : null;
   96:             subscriber._FlexCallingLineId = (parameterDictionary.ContainsKey("FlexCallingLineId")) ? parameterDictionary["FlexCallingLineId"].ToString() : null;
   97:             subscriber._ExtensionDevice = (parameterDictionary.ContainsKey("ExtensionDevice")) ? parameterDictionary["ExtensionDevice"].ToString() : null;
   98:             subscriber._PSIServer = (parameterDictionary.ContainsKey("PSIServer")) ? parameterDictionary["PSIServer"].ToString() : null;
   99:             subscriber._ClosedUserGroup = (parameterDictionary.ContainsKey("ClosedUserGroup")) ? parameterDictionary["ClosedUserGroup"].ToString() : null;
  100:             subscriber._OneDigitSpeedDial = (parameterDictionary.ContainsKey("OneDigitSpeedDial")) ? parameterDictionary["OneDigitSpeedDial"].ToString() : null;
  101:             subscriber._TwoDigitSpeedDial = (parameterDictionary.ContainsKey("TwoDigitSpeedDial")) ? parameterDictionary["TwoDigitSpeedDial"].ToString() : null;
  102:             subscriber._ExtensionServer = (parameterDictionary.ContainsKey("ExtensionServer")) ? parameterDictionary["ExtensionServer"].ToString() : null;
  103:             subscriber._SelectiveAlert = (parameterDictionary.ContainsKey("SelectiveAlert")) ? parameterDictionary["SelectiveAlert"].ToString() : null;
  104:             subscriber._ShortCodeTranslate = (parameterDictionary.ContainsKey("ShortCodeTranslate")) ? parameterDictionary["ShortCodeTranslate"].ToString() : null;
  105:             subscriber._ReminderCall = (parameterDictionary.ContainsKey("ReminderCall")) ? parameterDictionary["ReminderCall"].ToString() : null;
  106:             subscriber._SetTZPath = (parameterDictionary.ContainsKey("SetTZPath")) ? parameterDictionary["SetTZPath"].ToString() : null;
  107:             subscriber._InhibitIncomingFwd = (parameterDictionary.ContainsKey("InhibitIncomingFwd")) ? parameterDictionary["InhibitIncomingFwd"].ToString() : null;
  108:             subscriber._BearerBasedCallFwd = (parameterDictionary.ContainsKey("BearerBasedCallFwd")) ? parameterDictionary["BearerBasedCallFwd"].ToString() : null;
  109:             subscriber._TimeOriginatedRC = (parameterDictionary.ContainsKey("TimeOriginatedRC")) ? parameterDictionary["TimeOriginatedRC"].ToString() : null;
  110:             subscriber._MobileDMS = (parameterDictionary.ContainsKey("MobileDMS")) ? parameterDictionary["MobileDMS"].ToString() : null;
  111:             subscriber._MLPP = (parameterDictionary.ContainsKey("MLPP")) ? parameterDictionary["MLPP"].ToString() : null;
  112:             subscriber._MusicOnHold = (parameterDictionary.ContainsKey("MusicOnHold")) ? parameterDictionary["MusicOnHold"].ToString() : null;
  113:             subscriber._MiRingback = (parameterDictionary.ContainsKey("MiRingback")) ? parameterDictionary["MiRingback"].ToString() : null;
  114:             subscriber._SelNomadicBlocking = (parameterDictionary.ContainsKey("SelNomadicBlocking")) ? parameterDictionary["SelNomadicBlocking"].ToString() : null;
  115:             subscriber._AutoDial = (parameterDictionary.ContainsKey("AutoDial")) ? parameterDictionary["AutoDial"].ToString() : null;
  116:             subscriber._CallForwardingDefault = (parameterDictionary.ContainsKey("CallForwardingDefault")) ? parameterDictionary["CallForwardingDefault"].ToString() : null;
  117:             subscriber._CCBS = (parameterDictionary.ContainsKey("CCBS")) ? parameterDictionary["CCBS"].ToString() : null;
  118:             subscriber._BlockCCBS = (parameterDictionary.ContainsKey("BlockCCBS")) ? parameterDictionary["BlockCCBS"].ToString() : null;
  119:             subscriber._AINFeatcodeTrigger = (parameterDictionary.ContainsKey("AINFeatcodeTrigger")) ? parameterDictionary["AINFeatcodeTrigger"].ToString() : null;
  120:             subscriber._AINPDPcodeTrigger = (parameterDictionary.ContainsKey("AINPDPcodeTrigger")) ? parameterDictionary["AINPDPcodeTrigger"].ToString() : null;
  121:             subscriber._AINOHDTrigger = (parameterDictionary.ContainsKey("AINOHDTrigger")) ? parameterDictionary["AINOHDTrigger"].ToString() : null;
  122:             subscriber._AINTATTrigger = (parameterDictionary.ContainsKey("AINTATTrigger")) ? parameterDictionary["AINTATTrigger"].ToString() : null;
  123:             subscriber._GLSAccess = (parameterDictionary.ContainsKey("GLSAccess")) ? parameterDictionary["GLSAccess"].ToString() : null;
  124:             subscriber._SharedNumber = (parameterDictionary.ContainsKey("SharedNumber")) ? parameterDictionary["SharedNumber"].ToString() : null;
  125:             subscriber._CallDeflection = (parameterDictionary.ContainsKey("CallDeflection")) ? parameterDictionary["CallDeflection"].ToString() : null;
  126:             subscriber._AutoAttendant = (parameterDictionary.ContainsKey("AutoAttendant")) ? parameterDictionary["AutoAttendant"].ToString() : null;
  127:             subscriber._AdjunctTerminating = (parameterDictionary.ContainsKey("AdjunctTerminating")) ? parameterDictionary["AdjunctTerminating"].ToString() : null;
  128:             subscriber._OutgoingCallBarring = (parameterDictionary.ContainsKey("OutgoingCallBarring")) ? parameterDictionary["OutgoingCallBarring"].ToString() : null;
  129:             subscriber._RDigitParms = (parameterDictionary.ContainsKey("RDigitParms")) ? parameterDictionary["RDigitParms"].ToString() : null;
  130:             subscriber._TransitRouting = (parameterDictionary.ContainsKey("TransitRouting")) ? parameterDictionary["TransitRouting"].ToString() : null;
  131:             subscriber._LocationNumber = (parameterDictionary.ContainsKey("LocationNumber")) ? parameterDictionary["LocationNumber"].ToString() : null;
  132:             subscriber._FemtoBSR = (parameterDictionary.ContainsKey("FemtoBSR")) ? parameterDictionary["FemtoBSR"].ToString() : null;
  133:             subscriber._GeneralReset = (parameterDictionary.ContainsKey("GeneralReset")) ? parameterDictionary["GeneralReset"].ToString() : null;
  134:             subscriber._Metering = (parameterDictionary.ContainsKey("Metering")) ? parameterDictionary["Metering"].ToString() : null;
  135:             subscriber._PinService = (parameterDictionary.ContainsKey("PinService")) ? parameterDictionary["PinService"].ToString() : null;
  136:             subscriber._WholeSale = (parameterDictionary.ContainsKey("WholeSale")) ? parameterDictionary["WholeSale"].ToString() : null;
  137:             subscriber._SpareService = (parameterDictionary.ContainsKey("SpareService")) ? parameterDictionary["SpareService"].ToString() : null;
  138:             subscriber._UseHoldAnnouncement = (parameterDictionary.ContainsKey("UseHoldAnnouncement")) ? parameterDictionary["UseHoldAnnouncement"].ToString() : null;
  139:             subscriber._VPNDialingAndDisplay = (parameterDictionary.ContainsKey("VPNDialingAndDisplay")) ? parameterDictionary["VPNDialingAndDisplay"].ToString() : null;
  140:             subscriber._PriorityModeCalling = (parameterDictionary.ContainsKey("PriorityModeCalling")) ? parameterDictionary["PriorityModeCalling"].ToString() : null;
  141:             subscriber._OneNumber = (parameterDictionary.ContainsKey("OneNumber")) ? parameterDictionary["OneNumber"].ToString() : null;
  142:             subscriber._AdvancedConference = (parameterDictionary.ContainsKey("AdvancedConference")) ? parameterDictionary["AdvancedConference"].ToString() : null;
  143:             subscriber._AnswConfirm = (parameterDictionary.ContainsKey("AnswConfirm")) ? parameterDictionary["AnswConfirm"].ToString() : null;
  144:             subscriber._OnlineCharging = (parameterDictionary.ContainsKey("OnlineCharging")) ? parameterDictionary["OnlineCharging"].ToString() : null;
  145:             subscriber._VideoCallRouting = (parameterDictionary.ContainsKey("VideoCallRouting")) ? parameterDictionary["VideoCallRouting"].ToString() : null;
  146:             subscriber._LisInVMRescue = (parameterDictionary.ContainsKey("LisInVMRescue")) ? parameterDictionary["LisInVMRescue"].ToString() : null;
  147:             subscriber._EndpointValidation = (parameterDictionary.ContainsKey("EndpointValidation")) ? parameterDictionary["EndpointValidation"].ToString() : null;
  148:             subscriber._ParlayRest = (parameterDictionary.ContainsKey("ParlayRest")) ? parameterDictionary["ParlayRest"].ToString() : null;
  149:             subscriber._AltRtToPBX = (parameterDictionary.ContainsKey("AltRtToPBX")) ? parameterDictionary["AltRtToPBX"].ToString() : null;
  150:             subscriber._WAMAccess = (parameterDictionary.ContainsKey("WAMAccess")) ? parameterDictionary["WAMAccess"].ToString() : null;
  151:             subscriber._ISDN = (parameterDictionary.ContainsKey("ISDN")) ? parameterDictionary["ISDN"].ToString() : null;
  152:             subscriber._LocaleParms = (parameterDictionary.ContainsKey("LocaleParms")) ? parameterDictionary["LocaleParms"].ToString() : null;
  153:             subscriber._VASI = (parameterDictionary.ContainsKey("VASI")) ? parameterDictionary["VASI"].ToString() : null;
  154:             subscriber._LocBasedRedirect = (parameterDictionary.ContainsKey("LocBasedRedirect")) ? parameterDictionary["LocBasedRedirect"].ToString() : null;
  155:             subscriber._CallLimitGroup = (parameterDictionary.ContainsKey("CallLimitGroup")) ? parameterDictionary["CallLimitGroup"].ToString() : null;
  156:             subscriber._AlternateCharging = (parameterDictionary.ContainsKey("AlternateCharging")) ? parameterDictionary["AlternateCharging"].ToString() : null;
  157:             subscriber._CallForwardNotReach = (parameterDictionary.ContainsKey("CallForwardNotReach")) ? parameterDictionary["CallForwardNotReach"].ToString() : null;
  158:             subscriber._MultiDevicesPUID = (parameterDictionary.ContainsKey("MultiDevicesPUID")) ? parameterDictionary["MultiDevicesPUID"].ToString() : null;
  159:             subscriber._ManagedCallRec = (parameterDictionary.ContainsKey("ManagedCallRec")) ? parameterDictionary["ManagedCallRec"].ToString() : null;
  160:             subscriber._GeoRedundancyData = (parameterDictionary.ContainsKey("GeoRedundancyData")) ? parameterDictionary["GeoRedundancyData"].ToString() : null;
  161:  
  162:             subscriber.Created = DateTime.UtcNow.AddHours(3);
  163:             subscriber.Updated = DateTime.UtcNow.AddHours(3);
  164:  
  165:             return subscriber;
  166:         }
  167:  
  168:         ////////////////////////////////////////////////////////////////////////////
  169:         ////////////////////////////////////////////////////////////////////////////
  170:  
  171:         /// <summary>
  172:         ///
  173:         /// </summary>
  174:         public static bool CallingLineIdIsAssigned(string callingLineIdXmlValue)
  175:         {
  176:             bool b;
  177:             string s1, s2;
  178:  
  179:             if (callingLineIdXmlValue != null)
  180:             {
  181:                 s1 = "<CallingLineIdPresentation>true</CallingLineIdPresentation>";
  182:                 s2 = "<ConnectedLinePresentation>true</ConnectedLinePresentation>";
  183:  
  184:                 if (callingLineIdXmlValue.Contains(s1) && callingLineIdXmlValue.Contains(s2)) b = true;
  185:                 else b = false;
  186:             }
  187:             else b = Ia.Cl.Models.Default.RandomBool; // important: if text is null we will return a random bool to trigger action from middle ware to have a non null value in database
  188:  
  189:             return b;
  190:         }
  191:  
  192:         ////////////////////////////////////////////////////////////////////////////
  193:  
  194:         /// <summary>
  195:         ///
  196:         /// </summary>
  197:         public static bool OneDigitSpeedDialIsAssigned(string oneDigitSpeedDialXmlValue)
  198:         {
  199:             bool b;
  200:             string s;
  201:  
  202:             if (oneDigitSpeedDialXmlValue != null)
  203:             {
  204:                 s = "<Assigned>true</Assigned>";
  205:  
  206:                 if (oneDigitSpeedDialXmlValue.Contains(s)) b = true;
  207:                 else b = false;
  208:             }
  209:             else b = false;
  210:  
  211:             return b;
  212:         }
  213:  
  214:         /*
  215:         ////////////////////////////////////////////////////////////////////////////
  216: 
  217:         /// <summary>
  218:         ///
  219:         /// </summary>
  220:         public static IQueryable<Ia.Ftn.Cl.Model.Nokia.Subscriber> OneDigitSpeedDialIsAssigned2(this IQueryable<Ia.Ftn.Cl.Model.Nokia.Subscriber> customers)
  221:         {
  222:             return true;
  223:         }
  224:         */
  225:  
  226:         ////////////////////////////////////////////////////////////////////////////
  227:  
  228:         /// <summary>
  229:         ///
  230:         /// </summary>
  231:         public static bool CallForwardingIsAssigned(string callForwardingVariXmlValue)
  232:         {
  233:             bool b;
  234:             string s;
  235:  
  236:             if (callForwardingVariXmlValue != null)
  237:             {
  238:                 s = "<Assigned>true</Assigned>";
  239:  
  240:                 if (callForwardingVariXmlValue.Contains(s)) b = true;
  241:                 else b = false;
  242:             }
  243:             else b = false;
  244:  
  245:             return b;
  246:         }
  247:  
  248:         ////////////////////////////////////////////////////////////////////////////
  249:  
  250:         /// <summary>
  251:         ///
  252:         /// </summary>
  253:         public static bool CallWaitingIsAssigned(string subscriberCallWaitingContent, bool agcfEndpointCallWaitingLc)
  254:         {
  255:             bool b;
  256:             string s;
  257:  
  258:             if (subscriberCallWaitingContent != null)
  259:             {
  260:                 //s = "<Assigned>true</Assigned>";
  261:                 s = "<Activated>true</Activated>";
  262:  
  263:                 if (subscriberCallWaitingContent.Contains(s) /*&& agcfEndpointCallWaitingLc*/) b = true;
  264:                 else b = false;
  265:             }
  266:             else b = Ia.Cl.Models.Default.RandomBool; // important: if text is null we will return a random bool to trigger action from middle ware to have a non null value in database
  267:  
  268:             return b;
  269:         }
  270:  
  271:         ////////////////////////////////////////////////////////////////////////////
  272:  
  273:         /// <summary>
  274:         ///
  275:         /// </summary>
  276:         public static bool ConferenceCallIsAssigned(string conferenceCallingXmlValue)
  277:         {
  278:             bool b;
  279:             string s;
  280:  
  281:             if (conferenceCallingXmlValue != null)
  282:             {
  283:                 s = "<Assigned>true</Assigned>";
  284:  
  285:                 if (conferenceCallingXmlValue.Contains(s)) b = true;
  286:                 else b = false;
  287:             }
  288:             else b = false;
  289:  
  290:             return b;
  291:         }
  292:  
  293:         ////////////////////////////////////////////////////////////////////////////
  294:  
  295:         /// <summary>
  296:         ///
  297:         /// </summary>
  298:         public static bool InternationalCallingIsAssigned(string callBarringXmlValue)
  299:         {
  300:             bool b;
  301:             string international;//, assigned;
  302:  
  303:             // important: true means NOT CallBarring international is not allowed
  304:  
  305:             if (callBarringXmlValue != null)
  306:             {
  307:                 international = "<International>false</International>";
  308:  
  309:                 // <Assigned>false</Assigned> will set the whole CallBarring tag to null
  310:                 //assigned = "<Assigned>false</Assigned>";
  311:  
  312:                 if (callBarringXmlValue.Contains(international) /* && text.Contains(assigned)*/) b = true;
  313:                 else b = false;
  314:             }
  315:             else b = true; // important if text is null then international calling is enabled
  316:  
  317:             return b;
  318:         }
  319:  
  320:         ////////////////////////////////////////////////////////////////////////////
  321:  
  322:         /// <summary>
  323:         ///
  324:         /// </summary>
  325:         public static bool InternationalCallingUserControlledIsAssigned(string outgoingCallBarringXmlValue)
  326:         {
  327:             bool b;
  328:             string s;
  329:  
  330:             if (outgoingCallBarringXmlValue != null)
  331:             {
  332:                 s = "<Assigned>true</Assigned>";
  333:  
  334:                 if (outgoingCallBarringXmlValue.Contains(s)) b = true;
  335:                 else b = false;
  336:             }
  337:             else b = false; // important if text is null then international calling user control is not enabled
  338:  
  339:             return b;
  340:         }
  341:  
  342:         ////////////////////////////////////////////////////////////////////////////
  343:  
  344:         /// <summary>
  345:         ///
  346:         /// </summary>
  347:         public static bool ReminderCallIsAssigned(string reminderCallXmlValue)
  348:         {
  349:             bool b;
  350:             string s;
  351:  
  352:             if (reminderCallXmlValue != null)
  353:             {
  354:                 s = "<Assigned>true</Assigned>";
  355:  
  356:                 if (reminderCallXmlValue.Contains(s)) b = true;
  357:                 else b = false;
  358:             }
  359:             else b = false;
  360:  
  361:             return b;
  362:         }
  363:  
  364:         ////////////////////////////////////////////////////////////////////////////
  365:  
  366:         /// <summary>
  367:         ///
  368:         /// </summary>
  369:         public static bool ServiceSuspensionIsAssigned(string _ServiceSuspension)
  370:         {
  371:             bool b;
  372:             string s;
  373:  
  374:             s = "<ServiceSuspension>true</ServiceSuspension>";
  375:  
  376:             if (_ServiceSuspension.Contains(s)) b = true;
  377:             else b = false;
  378:  
  379:             return b;
  380:         }
  381:  
  382:         ////////////////////////////////////////////////////////////////////////////
  383:         ////////////////////////////////////////////////////////////////////////////
  384:     }
  385:  
  386:     ////////////////////////////////////////////////////////////////////////////
  387:     ////////////////////////////////////////////////////////////////////////////
  388: }