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