شركة التطبيقات المتكاملة لتصميم النظم البرمجية الخاصة

Integrated Applications Programming Company

Skip Navigation LinksHome » Code Library » Subscriber

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

Subscriber support class for Nokia's Next Generation Network (NGN) business model.

   1:  using System;
   2:  using System.Collections.Generic;
   3:   
   4:  namespace Ia.Ngn.Cl.Model.Business.Nokia
   5:  {
   6:      ////////////////////////////////////////////////////////////////////////////
   7:   
   8:      /// <summary publish="true">
   9:      /// Subscriber support class for Nokia's Next Generation Network (NGN) business model.
  10:      /// </summary>
  11:      /// 
  12:      /// <remarks> 
  13:      /// Copyright � 2014-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet 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 partial class Subscriber
  26:      {
  27:          public Subscriber() { }
  28:   
  29:          ////////////////////////////////////////////////////////////////////////////
  30:   
  31:          /// <summary>
  32:          ///
  33:          /// </summary>
  34:          public static Ia.Ngn.Cl.Model.Nokia.Subscriber ParseFromDictionary(Dictionary<string, string> parameterDictionary)
  35:          {
  36:              string partyId;
  37:              Ia.Ngn.Cl.Model.Nokia.Subscriber subscriber;
  38:   
  39:              subscriber = new Ia.Ngn.Cl.Model.Nokia.Subscriber();
  40:   
  41:              partyId = Ia.Cl.Model.Default.Match(parameterDictionary["SubParty"].ToString(), "<PartyId>(.+)</PartyId>");
  42:   
  43:              subscriber.Id = Ia.Ngn.Cl.Model.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:              subscriber.UserId = Guid.Empty;
 165:   
 166:              return subscriber;
 167:          }
 168:   
 169:          ////////////////////////////////////////////////////////////////////////////
 170:          ////////////////////////////////////////////////////////////////////////////
 171:   
 172:          /// <summary>
 173:          ///
 174:          /// </summary>
 175:          public static bool CallingLineIdIsAssigned(string callingLineIdXmlValue)
 176:          {
 177:              bool b;
 178:              string s1, s2;
 179:   
 180:              if (callingLineIdXmlValue != null)
 181:              {
 182:                  s1 = "<CallingLineIdPresentation>true</CallingLineIdPresentation>";
 183:                  s2 = "<ConnectedLinePresentation>true</ConnectedLinePresentation>";
 184:   
 185:                  if (callingLineIdXmlValue.Contains(s1) && callingLineIdXmlValue.Contains(s2)) b = true;
 186:                  else b = false;
 187:              }
 188:              else b = Ia.Cl.Model.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
 189:   
 190:              return b;
 191:          }
 192:   
 193:          ////////////////////////////////////////////////////////////////////////////
 194:   
 195:          /// <summary>
 196:          ///
 197:          /// </summary>
 198:          public static bool OneDigitSpeedDialIsAssigned(string oneDigitSpeedDialXmlValue)
 199:          {
 200:              bool b;
 201:              string s;
 202:   
 203:              if (oneDigitSpeedDialXmlValue != null)
 204:              {
 205:                  s = "<Assigned>true</Assigned>";
 206:   
 207:                  if (oneDigitSpeedDialXmlValue.Contains(s)) b = true;
 208:                  else b = false;
 209:              }
 210:              else b = false;
 211:   
 212:              return b;
 213:          }
 214:   
 215:          /*
 216:          ////////////////////////////////////////////////////////////////////////////
 217:  
 218:          /// <summary>
 219:          ///
 220:          /// </summary>
 221:          public static IQueryable<Ia.Ngn.Cl.Model.Nokia.Subscriber> OneDigitSpeedDialIsAssigned2(this IQueryable<Ia.Ngn.Cl.Model.Nokia.Subscriber> customers)
 222:          {
 223:              return true;
 224:          }
 225:          */
 226:   
 227:          ////////////////////////////////////////////////////////////////////////////
 228:   
 229:          /// <summary>
 230:          ///
 231:          /// </summary>
 232:          public static bool CallForwardingIsAssigned(string callForwardingVariXmlValue)
 233:          {
 234:              bool b;
 235:              string s;
 236:   
 237:              if (callForwardingVariXmlValue != null)
 238:              {
 239:                  s = "<Assigned>true</Assigned>";
 240:   
 241:                  if (callForwardingVariXmlValue.Contains(s)) b = true;
 242:                  else b = false;
 243:              }
 244:              else b = false;
 245:   
 246:              return b;
 247:          }
 248:   
 249:          ////////////////////////////////////////////////////////////////////////////
 250:   
 251:          /// <summary>
 252:          ///
 253:          /// </summary>
 254:          public static bool CallWaitingIsAssigned(string subscriberCallWaitingContent, bool agcfEndpointCallWaitingLc)
 255:          {
 256:              bool b;
 257:              string s;
 258:   
 259:              if (subscriberCallWaitingContent != null)
 260:              {
 261:                  s = "<Assigned>true</Assigned>";
 262:   
 263:                  if (subscriberCallWaitingContent.Contains(s) /*&& agcfEndpointCallWaitingLc*/) b = true;
 264:                  else b = false;
 265:              }
 266:              else b = false;
 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:  }