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

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

Service Entity Framework class for Fixed Telecommunications Network (FTN) entity model.

    1: using System;
    2: using System.ComponentModel.DataAnnotations;
    3: using System.ComponentModel.DataAnnotations.Schema;
    4: using System.Linq;
    5: using System.Threading;
    6: using System.Threading.Tasks;
    7:  
    8: namespace Ia.Ftn.Cl.Models
    9: {
   10:     ////////////////////////////////////////////////////////////////////////////
   11:  
   12:     /// <summary publish="true">
   13:     /// Service Entity Framework class for Fixed Telecommunications Network (FTN) entity model.
   14:     /// </summary>
   15:     /// 
   16:     /// <remarks> 
   17:     /// Copyright © 2006-2021 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   18:     /// </remarks> 
   19:     public class Service2
   20:     {
   21:         /// <summary/>
   22:         public Service2() { }
   23:  
   24:         /// <summary/>
   25:         [Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
   26:         public string Id { get; set; }
   27:  
   28:         /// <summary/>
   29:         public string Service { get; set; }
   30:  
   31:         /// <summary/>
   32:         public int ServiceType { get; set; }
   33:  
   34:         /// <summary/>
   35:         public int AreaCode { get; set; }
   36:  
   37:         /// <summary/>
   38:         public bool CallWaiting { get; set; }
   39:  
   40:         /// <summary/>
   41:         public bool CallForwarding { get; set; }
   42:  
   43:         /// <summary/>
   44:         public bool AlarmCall { get; set; }
   45:  
   46:         /// <summary/>
   47:         public bool WakeupCall { get; set; }
   48:  
   49:         /// <summary/>
   50:         public bool InternationalCallingUserControlled { get; set; }
   51:  
   52:         /// <summary/>
   53:         public bool InternationalCalling { get; set; }
   54:  
   55:         /// <summary/>
   56:         public bool CallerId { get; set; }
   57:  
   58:         /// <summary/>
   59:         public bool ConferenceCall { get; set; }
   60:  
   61:         /// <summary/>
   62:         public bool CallBarring { get; set; }
   63:  
   64:         /// <summary/>
   65:         public bool ServiceSuspension { get; set; }
   66:  
   67:         /// <summary/>
   68:         public bool AbbriviatedCalling { get; set; }
   69:  
   70:         /// <summary/>
   71:         public bool CallForwardingUnconditional { get; set; }
   72:  
   73:         /// <summary/>
   74:         public bool CallingLineIdentificationRestriction { get; set; }
   75:  
   76:         /// <summary/>
   77:         public bool ConnectedLineIdentificationRestriction { get; set; }
   78:  
   79:         /// <summary/>
   80:         public bool WakeUp { get; set; }
   81:  
   82:         /// <summary/>
   83:         public bool CallForwardingByTime { get; set; }
   84:  
   85:         /// <summary/>
   86:         public bool MutlimediaInformationPresentation { get; set; }
   87:  
   88:         /// <summary/>
   89:         public bool SelectiveOutgoingCallBarring { get; set; }
   90:  
   91:         /// <summary/>
   92:         public bool DialNumberCallOutAllow { get; set; }
   93:  
   94:         /// <summary/>
   95:         public bool DoNotDisturb { get; set; }
   96:  
   97:         /// <summary/>
   98:         public bool OutgoingCallBarring { get; set; }
   99:  
  100:         /// <summary/>
  101:         public bool TemporaryLine { get; set; }
  102:  
  103:         /// <summary/>
  104:         public bool CodecControl { get; set; }
  105:  
  106:         /// <summary/>
  107:         public bool SelectiveIncomingCallBarring { get; set; }
  108:  
  109:         /// <summary/>
  110:         public bool SelectiveCallForwarding { get; set; }
  111:  
  112:         /// <summary/>
  113:         public bool DialNumberCallOutBarring { get; set; }
  114:  
  115:         /// <summary/>
  116:         public bool CallForwardingBasedonBlackList { get; set; }
  117:  
  118:         /// <summary/>
  119:         public bool CallForwardingBusy { get; set; }
  120:  
  121:         /// <summary/>
  122:         public bool CallForwardingNoReply { get; set; }
  123:  
  124:         /// <summary/>
  125:         public bool CallForwardingOffline { get; set; }
  126:  
  127:         /// <summary/>
  128:         public bool CallForwardingOnUserNotReachable { get; set; }
  129:  
  130:         /// <summary/>
  131:         public bool CallForwardingNoReplyinCallWaiting { get; set; }
  132:  
  133:         /// <summary/>
  134:         public bool MultiRinging { get; set; }
  135:  
  136:         /// <summary/>
  137:         public bool ConvergentInterPersonalService { get; set; }
  138:  
  139:         /// <summary/>
  140:         public bool CallForwardingBySequence { get; set; }
  141:  
  142:         /// <summary/>
  143:         public bool UserNumberChange { get; set; }
  144:  
  145:         /// <summary/>
  146:         public bool BlackNumberData { get; set; }
  147:  
  148:         /// <summary/>
  149:         public bool WhiteNumberData { get; set; }
  150:  
  151:         /// <summary/>
  152:         public bool OwedRestriction { get; set; }
  153:  
  154:         /// <summary/>
  155:         public bool Strategy { get; set; }
  156:  
  157:         /// <summary/>
  158:         public bool GreenNumberData { get; set; }
  159:  
  160:         /// <summary/>
  161:         public bool RedNumberData { get; set; }
  162:  
  163:         /// <summary/>
  164:         public bool BarringOfAllOutgoingCalls { get; set; }
  165:  
  166:         /// <summary/>
  167:         public bool BarringOfAllOutgoingInternationalCalls { get; set; }
  168:  
  169:         /// <summary/>
  170:         public bool BarringOfOutgoingInternationalCallsExceptThoseDirectedToTheHomePlmnCountry { get; set; }
  171:  
  172:         /// <summary/>
  173:         public bool BarringOfAllIncomingCalls { get; set; }
  174:  
  175:         /// <summary/>
  176:         public bool BarringOfIncomingCallsWhenRoamingOutsideTheHomePlmnCountry { get; set; }
  177:  
  178:         /// <summary/>
  179:         public bool SpeedDial { get; set; }
  180:  
  181:         /// <summary/>
  182:         public bool GreenCall { get; set; }
  183:  
  184:         /// <summary/>
  185:         public bool SetDataUpgrade { get; set; }
  186:  
  187:         /// <summary/>
  188:         public bool AutoConsole { get; set; }
  189:  
  190:         /// <summary/>
  191:         public bool NightService { get; set; }
  192:  
  193:         /// <summary/>
  194:         public bool BackupNumber { get; set; }
  195:  
  196:         /// <summary/>
  197:         public bool Absence { get; set; }
  198:  
  199:         /// <summary/>
  200:         public bool AuthorizedCodeForStdIdd { get; set; }
  201:  
  202:         /// <summary/>
  203:         public bool Hotline { get; set; }
  204:  
  205:         /// <summary/>
  206:         public bool CetMaliciousCommunicationIdentification { get; set; }
  207:  
  208:         /// <summary/>
  209:         public bool MissCallNotify { get; set; }
  210:  
  211:         /// <summary/>
  212:         public bool SubscriptionStatus { get; set; }
  213:  
  214:         /// <summary/>
  215:         public bool UsbDongleOneKeyService { get; set; }
  216:  
  217:         /// <summary/>
  218:         public bool IRoamingInboundSingleImsiMultiMsisdn { get; set; }
  219:  
  220:         /// <summary/>
  221:         public bool IRoamingOutboundSingleImsiMultiMsisdn { get; set; }
  222:  
  223:         /// <summary/>
  224:         public bool NpaSplit { get; set; }
  225:  
  226:         /// <summary/>
  227:         public bool AllCallForwardingGroup { get; set; }
  228:  
  229:         /// <summary/>
  230:         public bool ConditionalCallForwardingGroup { get; set; }
  231:  
  232:         /// <summary/>
  233:         public bool GeneralOrigIdentificationRestriction { get; set; }
  234:  
  235:         /// <summary/>
  236:         public bool MultimediaOfOrigIdRestriction { get; set; }
  237:  
  238:         /// <summary/>
  239:         public bool TerminatingIdentityRestriction { get; set; }
  240:  
  241:         /// <summary/>
  242:         public bool DistinctiveRing { get; set; }
  243:  
  244:         /// <summary/>
  245:         public bool VisitedNetworkImpu { get; set; }
  246:  
  247:         /// <summary/>
  248:         public bool SeasonalSuspend { get; set; }
  249:  
  250:         /// <summary/>
  251:         public bool NumberInvalidation { get; set; }
  252:  
  253:         /// <summary/>
  254:         public bool IroamingServiceProvision { get; set; }
  255:  
  256:         /// <summary/>
  257:         public bool IptvCallerId { get; set; }
  258:  
  259:         /// <summary/>
  260:         public bool IptvVideoCall { get; set; }
  261:  
  262:         /// <summary/>
  263:         public bool NumberPortability { get; set; }
  264:  
  265:         /// <summary/>
  266:         public bool SecretaryService { get; set; }
  267:  
  268:         /// <summary/>
  269:         public bool SalesBlock { get; set; }
  270:  
  271:         /// <summary/>
  272:         public bool FilterCriteria { get; set; }
  273:  
  274:         /// <summary/>
  275:         public bool CallerInformation { get; set; }
  276:  
  277:         /// <summary/>
  278:         public bool PresenceStatus { get; set; }
  279:  
  280:         /// <summary/>
  281:         public bool OneNumberService { get; set; }
  282:  
  283:         /// <summary/>
  284:         public bool AssociationList { get; set; }
  285:  
  286:         /// <summary/>
  287:         public int Pin { get; set; }
  288:  
  289:         /// <summary/>
  290:         public int Port { get; set; }
  291:  
  292:         /// <summary/>
  293:         [ForeignKey("Access_Id")]
  294:         public virtual Access Access { get; set; }
  295:  
  296:         /// <summary/>
  297:         public DateTime Created { get; set; }
  298:  
  299:         /// <summary/>
  300:         public DateTime Updated { get; set; }
  301:  
  302:         ////////////////////////////////////////////////////////////////////////////
  303:  
  304:         /// <summary>
  305:         ///
  306:         /// </summary>
  307:         [NotMapped]
  308:         public int Position
  309:         {
  310:             get
  311:             {
  312:                 return 0; // Ia.Ftn.Cl.Model.Data.Service.ServiceIdPositionDictionary[this.Id];
  313:             }
  314:         }
  315:  
  316:         ////////////////////////////////////////////////////////////////////////////
  317:  
  318:         /// <summary>
  319:         ///
  320:         /// </summary>
  321:         public bool Update(Service2 updatedService)
  322:         {
  323:             // below: this will not update Id, Created
  324:             bool updated;
  325:  
  326:             updated = false;
  327:  
  328:             if (this.Service != updatedService.Service) { this.Service = updatedService.Service; updated = true; }
  329:             if (this.ServiceType != updatedService.ServiceType) { this.ServiceType = updatedService.ServiceType; updated = true; }
  330:             if (this.AreaCode != updatedService.AreaCode) { this.AreaCode = updatedService.AreaCode; updated = true; }
  331:             if (this.CallWaiting != updatedService.CallWaiting) { this.CallWaiting = updatedService.CallWaiting; updated = true; }
  332:             if (this.CallForwarding != updatedService.CallForwarding) { this.CallForwarding = updatedService.CallForwarding; updated = true; }
  333:  
  334:             if (this.AlarmCall != updatedService.AlarmCall) { this.AlarmCall = updatedService.AlarmCall; updated = true; }
  335:             if (this.WakeupCall != updatedService.WakeupCall) { this.WakeupCall = updatedService.WakeupCall; updated = true; }
  336:  
  337:             // remove later if (this.CallBarring != updatedService.CallBarring) { this.CallBarring = updatedService.CallBarring; updated = true; }
  338:             if (this.InternationalCallingUserControlled != updatedService.InternationalCallingUserControlled) { this.InternationalCallingUserControlled = updatedService.InternationalCallingUserControlled; updated = true; }
  339:             if (this.InternationalCalling != updatedService.InternationalCalling) { this.InternationalCalling = updatedService.InternationalCalling; updated = true; }
  340:             if (this.CallerId != updatedService.CallerId) { this.CallerId = updatedService.CallerId; updated = true; }
  341:             if (this.ConferenceCall != updatedService.ConferenceCall) { this.ConferenceCall = updatedService.ConferenceCall; updated = true; }
  342:             if (this.ServiceSuspension != updatedService.ServiceSuspension) { this.ServiceSuspension = updatedService.ServiceSuspension; updated = true; }
  343:             //if (this.ServiceSuspensionTypeId != updatedService.ServiceSuspensionTypeId) { this.ServiceSuspensionTypeId = updatedService.ServiceSuspensionTypeId; updated = true; }
  344:             if (this.AbbriviatedCalling != updatedService.AbbriviatedCalling) { this.AbbriviatedCalling = updatedService.AbbriviatedCalling; updated = true; }
  345:             if (this.CallForwardingUnconditional != updatedService.CallForwardingUnconditional) { this.CallForwardingUnconditional = updatedService.CallForwardingUnconditional; updated = true; }
  346:             if (this.CallingLineIdentificationRestriction != updatedService.CallingLineIdentificationRestriction) { this.CallingLineIdentificationRestriction = updatedService.CallingLineIdentificationRestriction; updated = true; }
  347:             if (this.ConnectedLineIdentificationRestriction != updatedService.ConnectedLineIdentificationRestriction) { this.ConnectedLineIdentificationRestriction = updatedService.ConnectedLineIdentificationRestriction; updated = true; }
  348:             if (this.WakeUp != updatedService.WakeUp) { this.WakeUp = updatedService.WakeUp; updated = true; }
  349:             if (this.CallForwardingByTime != updatedService.CallForwardingByTime) { this.CallForwardingByTime = updatedService.CallForwardingByTime; updated = true; }
  350:             if (this.MutlimediaInformationPresentation != updatedService.MutlimediaInformationPresentation) { this.MutlimediaInformationPresentation = updatedService.MutlimediaInformationPresentation; updated = true; }
  351:             if (this.SelectiveOutgoingCallBarring != updatedService.SelectiveOutgoingCallBarring) { this.SelectiveOutgoingCallBarring = updatedService.SelectiveOutgoingCallBarring; updated = true; }
  352:             if (this.DialNumberCallOutAllow != updatedService.DialNumberCallOutAllow) { this.DialNumberCallOutAllow = updatedService.DialNumberCallOutAllow; updated = true; }
  353:             if (this.DoNotDisturb != updatedService.DoNotDisturb) { this.DoNotDisturb = updatedService.DoNotDisturb; updated = true; }
  354:             if (this.OutgoingCallBarring != updatedService.OutgoingCallBarring) { this.OutgoingCallBarring = updatedService.OutgoingCallBarring; updated = true; }
  355:             if (this.TemporaryLine != updatedService.TemporaryLine) { this.TemporaryLine = updatedService.TemporaryLine; updated = true; }
  356:             if (this.CodecControl != updatedService.CodecControl) { this.CodecControl = updatedService.CodecControl; updated = true; }
  357:             if (this.SelectiveIncomingCallBarring != updatedService.SelectiveIncomingCallBarring) { this.SelectiveIncomingCallBarring = updatedService.SelectiveIncomingCallBarring; updated = true; }
  358:             if (this.SelectiveCallForwarding != updatedService.SelectiveCallForwarding) { this.SelectiveCallForwarding = updatedService.SelectiveCallForwarding; updated = true; }
  359:             if (this.DialNumberCallOutBarring != updatedService.DialNumberCallOutBarring) { this.DialNumberCallOutBarring = updatedService.DialNumberCallOutBarring; updated = true; }
  360:             if (this.CallForwardingBasedonBlackList != updatedService.CallForwardingBasedonBlackList) { this.CallForwardingBasedonBlackList = updatedService.CallForwardingBasedonBlackList; updated = true; }
  361:             if (this.CallForwardingBusy != updatedService.CallForwardingBusy) { this.CallForwardingBusy = updatedService.CallForwardingBusy; updated = true; }
  362:             if (this.CallForwardingNoReply != updatedService.CallForwardingNoReply) { this.CallForwardingNoReply = updatedService.CallForwardingNoReply; updated = true; }
  363:             if (this.CallForwardingOffline != updatedService.CallForwardingOffline) { this.CallForwardingOffline = updatedService.CallForwardingOffline; updated = true; }
  364:             if (this.CallForwardingOnUserNotReachable != updatedService.CallForwardingOnUserNotReachable) { this.CallForwardingOnUserNotReachable = updatedService.CallForwardingOnUserNotReachable; updated = true; }
  365:             if (this.CallForwardingNoReplyinCallWaiting != updatedService.CallForwardingNoReplyinCallWaiting) { this.CallForwardingNoReplyinCallWaiting = updatedService.CallForwardingNoReplyinCallWaiting; updated = true; }
  366:             if (this.MultiRinging != updatedService.MultiRinging) { this.MultiRinging = updatedService.MultiRinging; updated = true; }
  367:             if (this.ConvergentInterPersonalService != updatedService.ConvergentInterPersonalService) { this.ConvergentInterPersonalService = updatedService.ConvergentInterPersonalService; updated = true; }
  368:             if (this.CallForwardingBySequence != updatedService.CallForwardingBySequence) { this.CallForwardingBySequence = updatedService.CallForwardingBySequence; updated = true; }
  369:             if (this.UserNumberChange != updatedService.UserNumberChange) { this.UserNumberChange = updatedService.UserNumberChange; updated = true; }
  370:             if (this.BlackNumberData != updatedService.BlackNumberData) { this.BlackNumberData = updatedService.BlackNumberData; updated = true; }
  371:             if (this.WhiteNumberData != updatedService.WhiteNumberData) { this.WhiteNumberData = updatedService.WhiteNumberData; updated = true; }
  372:             if (this.OwedRestriction != updatedService.OwedRestriction) { this.OwedRestriction = updatedService.OwedRestriction; updated = true; }
  373:             if (this.Strategy != updatedService.Strategy) { this.Strategy = updatedService.Strategy; updated = true; }
  374:             if (this.GreenNumberData != updatedService.GreenNumberData) { this.GreenNumberData = updatedService.GreenNumberData; updated = true; }
  375:             if (this.RedNumberData != updatedService.RedNumberData) { this.RedNumberData = updatedService.RedNumberData; updated = true; }
  376:             if (this.BarringOfAllOutgoingCalls != updatedService.BarringOfAllOutgoingCalls) { this.BarringOfAllOutgoingCalls = updatedService.BarringOfAllOutgoingCalls; updated = true; }
  377:             if (this.BarringOfAllOutgoingInternationalCalls != updatedService.BarringOfAllOutgoingInternationalCalls) { this.BarringOfAllOutgoingInternationalCalls = updatedService.BarringOfAllOutgoingInternationalCalls; updated = true; }
  378:             if (this.BarringOfOutgoingInternationalCallsExceptThoseDirectedToTheHomePlmnCountry != updatedService.BarringOfOutgoingInternationalCallsExceptThoseDirectedToTheHomePlmnCountry) { this.BarringOfOutgoingInternationalCallsExceptThoseDirectedToTheHomePlmnCountry = updatedService.BarringOfOutgoingInternationalCallsExceptThoseDirectedToTheHomePlmnCountry; updated = true; }
  379:             if (this.BarringOfAllIncomingCalls != updatedService.BarringOfAllIncomingCalls) { this.BarringOfAllIncomingCalls = updatedService.BarringOfAllIncomingCalls; updated = true; }
  380:             if (this.BarringOfIncomingCallsWhenRoamingOutsideTheHomePlmnCountry != updatedService.BarringOfIncomingCallsWhenRoamingOutsideTheHomePlmnCountry) { this.BarringOfIncomingCallsWhenRoamingOutsideTheHomePlmnCountry = updatedService.BarringOfIncomingCallsWhenRoamingOutsideTheHomePlmnCountry; updated = true; }
  381:             if (this.SpeedDial != updatedService.SpeedDial) { this.SpeedDial = updatedService.SpeedDial; updated = true; }
  382:             if (this.GreenCall != updatedService.GreenCall) { this.GreenCall = updatedService.GreenCall; updated = true; }
  383:             if (this.SetDataUpgrade != updatedService.SetDataUpgrade) { this.SetDataUpgrade = updatedService.SetDataUpgrade; updated = true; }
  384:             if (this.AutoConsole != updatedService.AutoConsole) { this.AutoConsole = updatedService.AutoConsole; updated = true; }
  385:             if (this.NightService != updatedService.NightService) { this.NightService = updatedService.NightService; updated = true; }
  386:             if (this.BackupNumber != updatedService.BackupNumber) { this.BackupNumber = updatedService.BackupNumber; updated = true; }
  387:             if (this.Absence != updatedService.Absence) { this.Absence = updatedService.Absence; updated = true; }
  388:             if (this.AuthorizedCodeForStdIdd != updatedService.AuthorizedCodeForStdIdd) { this.AuthorizedCodeForStdIdd = updatedService.AuthorizedCodeForStdIdd; updated = true; }
  389:             if (this.Hotline != updatedService.Hotline) { this.Hotline = updatedService.Hotline; updated = true; }
  390:             if (this.CetMaliciousCommunicationIdentification != updatedService.CetMaliciousCommunicationIdentification) { this.CetMaliciousCommunicationIdentification = updatedService.CetMaliciousCommunicationIdentification; updated = true; }
  391:             if (this.MissCallNotify != updatedService.MissCallNotify) { this.MissCallNotify = updatedService.MissCallNotify; updated = true; }
  392:             if (this.SubscriptionStatus != updatedService.SubscriptionStatus) { this.SubscriptionStatus = updatedService.SubscriptionStatus; updated = true; }
  393:             if (this.UsbDongleOneKeyService != updatedService.UsbDongleOneKeyService) { this.UsbDongleOneKeyService = updatedService.UsbDongleOneKeyService; updated = true; }
  394:             if (this.IRoamingInboundSingleImsiMultiMsisdn != updatedService.IRoamingInboundSingleImsiMultiMsisdn) { this.IRoamingInboundSingleImsiMultiMsisdn = updatedService.IRoamingInboundSingleImsiMultiMsisdn; updated = true; }
  395:             if (this.IRoamingOutboundSingleImsiMultiMsisdn != updatedService.IRoamingOutboundSingleImsiMultiMsisdn) { this.IRoamingOutboundSingleImsiMultiMsisdn = updatedService.IRoamingOutboundSingleImsiMultiMsisdn; updated = true; }
  396:             if (this.NpaSplit != updatedService.NpaSplit) { this.NpaSplit = updatedService.NpaSplit; updated = true; }
  397:             if (this.AllCallForwardingGroup != updatedService.AllCallForwardingGroup) { this.AllCallForwardingGroup = updatedService.AllCallForwardingGroup; updated = true; }
  398:             if (this.ConditionalCallForwardingGroup != updatedService.ConditionalCallForwardingGroup) { this.ConditionalCallForwardingGroup = updatedService.ConditionalCallForwardingGroup; updated = true; }
  399:             if (this.GeneralOrigIdentificationRestriction != updatedService.GeneralOrigIdentificationRestriction) { this.GeneralOrigIdentificationRestriction = updatedService.GeneralOrigIdentificationRestriction; updated = true; }
  400:             if (this.MultimediaOfOrigIdRestriction != updatedService.MultimediaOfOrigIdRestriction) { this.MultimediaOfOrigIdRestriction = updatedService.MultimediaOfOrigIdRestriction; updated = true; }
  401:             if (this.TerminatingIdentityRestriction != updatedService.TerminatingIdentityRestriction) { this.TerminatingIdentityRestriction = updatedService.TerminatingIdentityRestriction; updated = true; }
  402:             if (this.DistinctiveRing != updatedService.DistinctiveRing) { this.DistinctiveRing = updatedService.DistinctiveRing; updated = true; }
  403:             if (this.VisitedNetworkImpu != updatedService.VisitedNetworkImpu) { this.VisitedNetworkImpu = updatedService.VisitedNetworkImpu; updated = true; }
  404:             if (this.SeasonalSuspend != updatedService.SeasonalSuspend) { this.SeasonalSuspend = updatedService.SeasonalSuspend; updated = true; }
  405:             if (this.NumberInvalidation != updatedService.NumberInvalidation) { this.NumberInvalidation = updatedService.NumberInvalidation; updated = true; }
  406:             if (this.IroamingServiceProvision != updatedService.IroamingServiceProvision) { this.IroamingServiceProvision = updatedService.IroamingServiceProvision; updated = true; }
  407:             if (this.IptvCallerId != updatedService.IptvCallerId) { this.IptvCallerId = updatedService.IptvCallerId; updated = true; }
  408:             if (this.IptvVideoCall != updatedService.IptvVideoCall) { this.IptvVideoCall = updatedService.IptvVideoCall; updated = true; }
  409:             if (this.NumberPortability != updatedService.NumberPortability) { this.NumberPortability = updatedService.NumberPortability; updated = true; }
  410:             if (this.SecretaryService != updatedService.SecretaryService) { this.SecretaryService = updatedService.SecretaryService; updated = true; }
  411:             if (this.SalesBlock != updatedService.SalesBlock) { this.SalesBlock = updatedService.SalesBlock; updated = true; }
  412:             if (this.FilterCriteria != updatedService.FilterCriteria) { this.FilterCriteria = updatedService.FilterCriteria; updated = true; }
  413:             if (this.CallerInformation != updatedService.CallerInformation) { this.CallerInformation = updatedService.CallerInformation; updated = true; }
  414:             if (this.PresenceStatus != updatedService.PresenceStatus) { this.PresenceStatus = updatedService.PresenceStatus; updated = true; }
  415:             if (this.OneNumberService != updatedService.OneNumberService) { this.OneNumberService = updatedService.OneNumberService; updated = true; }
  416:             if (this.AssociationList != updatedService.AssociationList) { this.AssociationList = updatedService.AssociationList; updated = true; }
  417:             if (this.Pin != updatedService.Pin) { this.Pin = updatedService.Pin; updated = true; }
  418:  
  419:             // I need the Port value to be maitained in updates. I will use it for migration
  420:             //if (this.Port != updatedService.Port) { this.Port = updatedService.Port; updated = true; }
  421:  
  422:             if (this.Access != null && updatedService.Access != null && this.Access.Id != updatedService.Access.Id) { this.Access = updatedService.Access; updated = true; }
  423:             else if (this.Access == null && updatedService.Access != null) { this.Access = updatedService.Access; updated = true; }
  424:  
  425:             if (updated) this.Updated = DateTime.UtcNow.AddHours(3);
  426:  
  427:             return updated;
  428:         }
  429:  
  430:         ////////////////////////////////////////////////////////////////////////////
  431:         ////////////////////////////////////////////////////////////////////////////
  432:     }
  433:  
  434:     ////////////////////////////////////////////////////////////////////////////
  435:     ////////////////////////////////////////////////////////////////////////////
  436: }