Professional Applications Programmers/Consultants برمجة واستشارات تطبيقات الإنترنت
Skip Navigation LinksHome » Code Library » EmsOnt

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

Huawei's EMS Ont Entity Framework class for Next Generation Network (NGN) entity model.

   1:  using System;
   2:  using System.Collections.Generic;
   3:  using System.ComponentModel.DataAnnotations;
   4:  using System.ComponentModel.DataAnnotations.Schema;
   5:   
   6:  namespace Ia.Ngn.Cl.Model.Huawei
   7:  {
   8:      ////////////////////////////////////////////////////////////////////////////
   9:   
  10:      /// <summary publish="true">
  11:      /// Huawei's EMS Ont Entity Framework class for Next Generation Network (NGN) entity model.
  12:      /// </summary>
  13:      /// 
  14:      /// <remarks> 
  15:      /// Copyright © 2016-2018 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  16:      ///
  17:      /// 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
  18:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  19:      ///
  20:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  21:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  22:      /// 
  23:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  24:      /// 
  25:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  26:      /// </remarks> 
  27:      public partial class EmsOnt
  28:      {
  29:          /*
  30:           * iManager_U2000_V200R014C60_TL1_NBI_User_Guide_13.pdf
  31:           * 
  32:           * 14.7.4 Querying the List of ONUs (LST-ONT)
  33:           * 
  34:           * Command Format LST-ONT::[NAME=onu-name|ONTSN=ont-serianu|PWD=ont-password][[,]((DID=Device-ID| DEV=Device-name)[,FN=Frame-id[,SN=Slot-id[,PN=Port-id[,ONTID=ont-id]]]][, (ONTSN=ont-serianum)|(RUNSTAT=run stat)])|(ONUDID=Mdu-Device-id|ONUDEV=Mdu-Devicename)]:{ctag}::[SHOWOPTION=SERIALNUM PWD LOID CHECKCODE ALMPROF DEV VLAN PRI IP MASK GATE ROUTEIP ROUTEMASK NEXTHOP SNMPPROF OPTALMPROF VAPROF MACLEARN SRVLEVELPROF HARDWAREVERSION LSTUPTIME LSTDOWNTIME DEVCURRENTTIME VASPROFILESET OPERSTATE DEVNAME DEVIP BINDWIDTHTYPE];          * 
  35:           */
  36:   
  37:          /// <summary/>
  38:          //public enum ServiceTypeList { IMPU = 1, TEMPLATEIDX, DSPIDX, LP, CSC, UNAME, VCCFLAG, VTFLAG, NSCFU, NSCFUVM, NSCFB, NSCFBVM, NSCFNR, NSCFNRVM, NSCFNL, NSCFNLVM, NSCD, NSCDVM, NSCFNRC, NSCFNRCVM, NSCLIP, NSCIDCW, NSRIO, NSCNIP, NSCLIR, NSRIP, NSCNIR, NSRID, NSNRID, NSRND, NSNRND, NSCW, NSCCW, NSOIP, NSACRM, NSGOIR, NSMOIR, NSTIP, NSTIR, NSOTIR, NSCLIPNOSCREENING, NSCR, NSWAKE_UP, NSAOC_D, NSAOC_E, NSXEXH, NSXEGJ, NSCWCFNR, NSIIFC, NSDN_CALL_OUT_BAR, NSCCBS, NSCCNR, NSCCBSR, NSCCNRR, NS3PTY, NSNPTY, NSDND, NSMCR, NSCBA, NSTMP_LIN, NSCODEC_CNTRL, NSMWI, NSDC, NSHOLD, NSECT, NSCFTB, NSDAN, NSSTOP_SECRET, NSMCID, NSEBO, NSICO, NSOUTG, NSINQYH, NSUINFO, NSDN_CALL_OUT_ALLOW, NSSIC, NSSOC, NSSETCFNRTIME, NSCFS, NSCFSB, NSFAX, NSABRC, NSACRTOVM, NSPREPAID, NSCRBT, NSICB, NSMRINGING, NSCIS, NSCBEG, NSCOLP, NSCOLR, NSCOLPOVR, NSBAOC, NSBOIC, NSBOICEXHC, NSBAIC, NSBICROM, NSSPEED_DIAL, NSSD1D, NSSD2D, NSGRNCALL, NSCPARK, NSGAA, NSQSNS, NSMSN, NSHOTLINE, NSAOC_S, NSNIGHTSRV, NSBACKNUM, NSAUTOCON, NSCAMPON, NSCTD, NSCLICKHOLD, NSQUEUE, NSSANSWER, NSICENCF, NSCFGO, NSCECT, NSCTGO, NSCTIO, NSSETBUSY, NSOVERSTEP, NSABSENT, NSMONITOR, NSFMONITOR, NSDISCNT, NSFDISCNT, NSINSERT, NSFINSERT, NSASI, NSPWCB, NSRD, NSLCPS, NSNCPS, NSICPS, NSCBCLOCK, NSMINIBAR, NSMCN, NSDSTR, NSOPRREG, NSONEKEY, NSINBOUND, NSOUTBOUND, NSCALLERID, NSCUN, NSIPTVVC, NSNP, NSSEC, NSSECSTA, NSHRCN, NSSB, NSOCCR, LCO, LC, LCT, NTT, ITT, ICTX, OCTX, INTT, IITT, ICLT, ICDDD, ICIDD, IOLT, CTLCO, CTLCT, CTLD, CTINTNANP, CTINTWORLD, CTDA, CTOSM, CTOSP, CTOSP1, CCO1, CCO2, CCO3, CCO4, CCO5, CCO6, CCO7, CCO8, CCO9, CCO10, CCO11, CCO12, CCO13, CCO14, CCO15, CCO16, HIGHENTCO, OPERATOR, SUPYSRV, IDDCI, NTCI, LTCI, RSC, CIG, OUTRST, INRST, NOAT, RINGCOUNT, VMAIND, VDMAIND, TGRP, TIDHLD, TIDCW, SCF, LMTGRP, FLBGRP, SLBGRP, COP, G711_64K_A_LAW, G711_64K_U_LAW, G722, G723, G726, G728, G729, CODEC_MP4A, CODEC2833, CODEC2198, G726_40, G726_32, G726_24, G726_16, AMR, CLEARMODE, ILBC, SPEEX, G729EV, EVRC, EVRCB, H261, H263, CODEC_MP4V, H264, T38, T120, G711A_VBD, G711U_VBD, G726_VBD, G726_40_VBD, G726_32_VBD, G726_24_VBD, G726_16_VBD, WIND_BAND_AMR, GSM610, H263_2000, BROADVOICE_32, UNKNOWN_CODEC, ACODEC, VCODEC, POLIDX, NCPI, ICPI, EBOCL, EBOPL, EBOIT, RM, CPC, PCHG, TFPT, CHT, MCIDMODE, MCIDCMODE, MCIDAMODE, PREPAIDIDX, CRBTID, ODBBICTYPE, ODBBOCTYPE, ODBBARTYPE, ODBSS, ODBBRCFTYPE, PNOTI, MAXPARACALL, ATSDTMBUSY, CALLCOUNT, CDNOTICALLER, ISCHGFLAG, CHC, CUSER, CGRP, CUSERGRP, STCF, CHARSC, REGUIDX, SOCBFUNC, SOCBPTONEIDX, ADMINCBA, ADCONTROL_DIVERSION, DPR, PRON, CPCRUS, CUSCAT, SPT100REL }
  39:   
  40:          /// <summary/>
  41:          public EmsOnt() { }
  42:   
  43:          /// <summary/>
  44:          [Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
  45:          public string Id { get; set; }
  46:   
  47:          /// <summary>        
  48:          /// DID INTEGER - Indicates the device ID of the OLT. 
  49:          /// </summary>
  50:          public int DID { get; set; }
  51:   
  52:          /// <summary>        
  53:          /// FN INTEGER 0-255 Indicates the subrack ID of the OLT. 
  54:          /// </summary>
  55:          public int FN { get; set; }
  56:   
  57:          /// <summary>        
  58:          /// SN INTEGER 0-35 Indicates the slot ID of the OLT. 
  59:          /// </summary>
  60:          public int SN { get; set; }
  61:   
  62:          /// <summary>        
  63:          /// PN INTEGER 0-63 Indicates the port ID of the OLT. 
  64:          /// </summary>
  65:          public int PN { get; set; }
  66:   
  67:          /// <summary>        
  68:          /// ONTID INTEGER 0-255 NOTE If the UNI port is of 10G GPON, the value range is 0-255; if the UNI port is of 1G GPON, the value range is 0-127. Indicates the ONT ID. 
  69:          /// </summary>
  70:          public int ONTID { get; set; }
  71:   
  72:          /// <summary>        
  73:          /// NAME OCTET STRING SIZE (255) Indicates the name of the ONU. 
  74:          /// </summary>
  75:          public string NAME { get; set; }
  76:   
  77:          /// <summary>        
  78:          /// ALIAS OCTET STRING SIZE (128) NOTE For the MA5600 V800R005C03, MA5600 V800R005C23, and MA5600 V800R005C33, the alias consists of up to 32 characters. Indicates the alias for the ONU. NOTE The following characters are supported: l English letters: A-Z and a-z. l Numbers: 0-9. l Symbols: ( ) _ - + . / \ | and space.
  79:          /// </summary>
  80:          public string ALIAS { get; set; }
  81:   
  82:          /// <summary>
  83:          /// CAPABPROF OCTET STRING SIZE (64) Indicates the name of the capability set profile. The parameter is available only when the ONU is in the discrete mode.
  84:          /// </summary>
  85:          public string CAPABPROF { get; set; }
  86:   
  87:          /// <summary>
  88:          /// VENDORID OCTET STRING SIZE (32) Indicates the vendor ID.
  89:          /// </summary>
  90:          public string VENDORID { get; set; }
  91:   
  92:          /// <summary>
  93:          /// EQUIPMENTID OCTET STRING SIZE (40) Indicates the ONU ID.
  94:          /// </summary>
  95:          public string EQUIPMENTID { get; set; }
  96:   
  97:          /// <summary>
  98:          /// MAINSOFTVERSION OCTET STRING SIZE (14) Indicates the software version.
  99:          /// </summary>
 100:          public string MAINSOFTVERSION { get; set; }
 101:   
 102:          /// <summary>
 103:          /// AUTH OCTET STRING l SN l SN_PASSWO RD l ALWAYS_ON l ONCE_ON l LOID l LOID_ONCE ON l LOID_CHEC KCODE l LOID_CHEC KCODE_ONC EON Indicates the authentication mode.
 104:          /// </summary>
 105:          public string AUTH { get; set; }
 106:   
 107:          /// <summary>
 108:          /// AUTHTIMEOUT INTEGER 1-168 Disable Indicates the timeout period of the authentication. This parameter is valid only when the AUTH parameter is set to ONCE_ON. If you do not set this parameter, the value is returned as Disable in the output information. Unit: h.
 109:          /// </summary>
 110:          public int AUTHTIMEOUT { get; set; }
 111:   
 112:          /// <summary>
 113:          /// LINEPROF OCTET STRING SIZE (32) Indicates the name of the line profile. The parameter is available only when the ONU is in the profile mode.
 114:          /// </summary>
 115:          public string LINEPROF { get; set; }
 116:   
 117:          /// <summary>
 118:          /// SRVPROF OCTET STRING SIZE (32) Indicates the name of the service profile. The parameter is available only when the ONU is in the profile mode.
 119:          /// </summary>
 120:          public string SRVPROF { get; set; }
 121:   
 122:          /// <summary>
 123:          /// SERIALNUM OCTET STRING SIZE (16) Indicates the serial number. Format: 12byte character string XXXXXXXXXXXX or 16-byte character string XXXXXXXXXXXXXXXX. For details about how to modify the format of the returned SN, see C.12 How to Modify the Format of the Returned SN.
 124:          /// </summary>
 125:          public string SERIALNUM { get; set; }
 126:   
 127:          /// <summary>
 128:          /// LOID OCTET STRING SIZE (24) Indicates the logical authentication code of the ONT.
 129:          /// </summary>
 130:          public string LOID { get; set; }
 131:   
 132:          /// <summary>
 133:          /// CHECKCODE OCTET STRING SIZE (12) Indicates the logical verification code of the ONT.
 134:          /// </summary>
 135:          public string CHECKCODE { get; set; }
 136:   
 137:          /// <summary>
 138:          /// PWD OCTET STRING SIZE (36) NOTE For the OLTs earlier than V800R011C00, the maximum length of password for ONTs connected to the OLTs is 10 characters. Indicates the password.
 139:          /// </summary>
 140:          public string PWD { get; set; }
 141:   
 142:          /// <summary>
 143:          /// ALMPROF OCTET STRING SIZE (32) Indicates the alarm profile name.
 144:          /// </summary>
 145:          public string ALMPROF { get; set; }
 146:   
 147:          /// <summary>
 148:          /// DEV OCTET STRING SIZE (192) Indicates the default OLT name. If the value of the configuration item DEVMEAN is 1, the DEV parameter indicates the IP address of the device. For details about how to modify configuration items, see C.7 How to Locate a Device According to the IP Address. 
 149:          /// </summary>
 150:          public string DEV { get; set; }
 151:   
 152:          /// <summary>
 153:          /// VLAN INTEGER 1-4095 Indicates the management VLAN of the ONU. When the location information contains NAME and SHOWOPTION=VLAN is entered, this parameter is displayed as --. 
 154:          /// </summary>
 155:          public int VLAN { get; set; }
 156:   
 157:          /// <summary>
 158:          /// PRI INTEGER 0-7 Indicates the priority of the ONU. When the location information contains NAME and SHOWOPTION=PRI is entered, this parameter is displayed as --. 
 159:          /// </summary>
 160:          public int PRI { get; set; }
 161:   
 162:          /// <summary>
 163:          /// IP IPADDRESS N/A Indicates the IP address of the ONU. When the location information contains NAME and SHOWOPTION=IP is entered, this parameter is displayed as --.
 164:          /// </summary>
 165:          public string IP { get; set; }
 166:   
 167:          /// <summary>
 168:          /// MASK IPADDRESS N/A Indicates the IP mask of the ONU. When the location information contains NAME and SHOWOPTION=MASK is entered, this parameter is displayed as --. 
 169:          /// </summary>
 170:          public string MASK { get; set; }
 171:   
 172:          /// <summary>
 173:          /// GATE IPADDRESS N/A Indicates the default gateway of the ONU. When the location information contains NAME and SHOWOPTION=GATE is entered, this parameter is displayed as --. 
 174:          /// </summary>
 175:          public string GATE { get; set; }
 176:   
 177:          /// <summary>
 178:          /// ROUTEIP OCTET STRING SIZE (255) Indicates the destination IP address of the ONU. When the location information contains NAME and SHOWOPTION=ROUTEIP is entered, this parameter is displayed as --. 
 179:          /// </summary>
 180:          public string ROUTEIP { get; set; }
 181:   
 182:          /// <summary>
 183:          /// ROUTEMASK OCTET STRING SIZE (255) Indicates the destination mask of the ONU. When the location information contains NAME and SHOWOPTION=ROUTEMASK is entered, this parameter is displayed as --. 
 184:          /// </summary>
 185:          public string ROUTEMASK { get; set; }
 186:   
 187:          /// <summary>
 188:          /// NEXTHOP OCTET STRING SIZE (255) Indicates the next hop IP address of the ONU. When the location information contains NAME and SHOWOPTION=NEXTHOP is entered, this parameter is displayed as --. 
 189:          /// </summary>
 190:          public string NEXTHOP { get; set; }
 191:   
 192:          /// <summary>
 193:          /// SNMPPROF OCTET STRING SIZE (32) Indicates the SNMP profile name of the ONU. When the location informat on contains NAME and SHOWOPTION=SNMPPROF is entered, this parameter is displayed as --. 
 194:          /// </summary>
 195:          public string SNMPPROF { get; set; }
 196:   
 197:          /// <summary>
 198:          /// OPTALMPROF OCTET STRING SIZE (32) When the location information contains NAME and SHOWOPTION=OPTALMPROF is entered, this parameter is displayed as --. 
 199:          /// </summary>
 200:          public string OPTALMPROF { get; set; }
 201:   
 202:          /// <summary>
 203:          /// VAPROF OCTET STRING SIZE (32) Indicates the name of a global ONT VAS profile or general ONT VAS profile. When the location information contains NAME and SHOWOPTION=VAPROF is entered, this parameter is displayed as --.
 204:          /// </summary>
 205:          public string VAPROF { get; set; }
 206:          /// <summary>
 207:          /// MACLEARN OCTET STRING l ENABLE l DISABLE Specifies whether to enable the MAC address learning function for ONUs. When the location information contains NAME and SHOWOPTION=MACLEARN is entered, this parameter is displayed as --. NOTE Only the OLT devices in discrete mode support this parameter.
 208:          /// </summary>
 209:          public string MACLEARN { get; set; }
 210:   
 211:          /// <summary>
 212:          /// SRVLEVELPROF OCTET STRING SIZE (32) Indicates the name of a service level profile. When the location information contains NAME and SHOWOPTION=SRVLEVELPROF is entered, this parameter is displayed as --. NOTE MA5600 V800R008C05 and later versions (excluding MA5600 V800R009) support this parameter.
 213:          /// </summary>
 214:          public string SRVLEVELPROF { get; set; }
 215:   
 216:          /// <summary>
 217:          /// LSTUPTIME INTEGER Format: YYYYMM-DD HH:MM:SS Indicates the last time when the ONT was online. The time is in UTC format. NOTE You cannot enter NAME as location information for this parameter.
 218:          /// </summary>
 219:          public int LSTUPTIME { get; set; }
 220:   
 221:          /// <summary>
 222:          /// LSTDOWNTIME INTEGER Format: YYYYMM-DD HH:MM:SS Indicates the last time when the ONT was offline. The time is in UTC format. NOTE You cannot enter NAME as location information for this parameter.
 223:          /// </summary>
 224:          public int LSTDOWNTIME { get; set; }
 225:   
 226:          /// <summary>
 227:          /// DEVCURRENTTIME INTEGER Format: YYYYMM-DD HH:MM:SS Indicates the current device time. The time is in UTC format. NOTE You cannot enter NAME as location information for this parameter.
 228:          /// </summary>
 229:          public int DEVCURRENTTIME { get; set; }
 230:   
 231:          /// <summary>
 232:          /// VASPROFILESET OCTET STRING SIZE (32) Indicates the profile set where the general ONT VAS profile resides. NOTE You cannot enter NAME as location information for this parameter.
 233:          /// </summary>
 234:          public string VASPROFILESET { get; set; }
 235:   
 236:          /// <summary>
 237:          /// HARDWAREVERSION OCTET STRING SIZE (32) Indicates the ONU hardware version. NOTE You cannot enter NAME as location information for this parameter.
 238:          /// </summary>
 239:          public string HARDWAREVERSION { get; set; }
 240:   
 241:          /// <summary>
 242:          /// OPERSTATE OCTET STRING l ACTIVATE l DEACTIVATE Indicates the operating status of the ONU. NOTE You cannot enter NAME as location information for this parameter.
 243:          /// </summary>
 244:          public string OPERSTATE { get; set; }
 245:   
 246:          /// <summary>
 247:          /// DEVNAME OCTET STRING SIZE (192) Indicates the name of the OLT.
 248:          /// </summary>
 249:          public string DEVNAME { get; set; }
 250:   
 251:          /// <summary>
 252:          /// BINDWIDTHTYPE INTEGER l 2.5G-1.25G l 10G-2.5G l 10G-10G l AUTO Indicates the upstream and downstream
 253:          /// </summary>
 254:          public int BINDWIDTHTYPE { get; set; }
 255:   
 256:          /// <summary/>
 257:          public DateTime Created { get; set; }
 258:   
 259:          /// <summary/>
 260:          public DateTime Updated { get; set; }
 261:   
 262:          /// <summary/>
 263:          public virtual Access Access { get; set; }
 264:   
 265:          /// <summary/>
 266:          public virtual Ia.Ngn.Cl.Model.Huawei.EmsPort EmsPort { get; set; }
 267:   
 268:          /// <summary/>
 269:          public virtual ICollection<Ia.Ngn.Cl.Model.Huawei.EmsOntSipInfo> EmsOntSipInfos { get; set; }
 270:   
 271:          /// <summary/>
 272:          public virtual ICollection<Ia.Ngn.Cl.Model.Huawei.EmsVoipPstnUser> EmsVoipPstnUsers { get; set; }
 273:   
 274:          ////////////////////////////////////////////////////////////////////////////
 275:   
 276:          /// <summary>
 277:          ///
 278:          /// </summary>
 279:          [NotMapped]
 280:          public Ia.Ngn.Cl.Model.Business.Huawei.Ont.EquipmentType EquipmentType
 281:          {
 282:              get
 283:              {
 284:                  return Ia.Ngn.Cl.Model.Business.Huawei.Ont.EquipmentTypeFromString(this.EQUIPMENTID);
 285:              }
 286:          }
 287:   
 288:          ////////////////////////////////////////////////////////////////////////////
 289:   
 290:          /// <summary>
 291:          ///
 292:          /// </summary>
 293:          [NotMapped]
 294:          public Ia.Ngn.Cl.Model.Business.Huawei.Ont.FamilyType FamilyType
 295:          {
 296:              get
 297:              {
 298:                  return Ia.Ngn.Cl.Model.Business.Huawei.Ont.FamilyTypeFromEquipmentType(this.EquipmentType);
 299:              }
 300:          }
 301:   
 302:          ////////////////////////////////////////////////////////////////////////////
 303:   
 304:          /// <summary>
 305:          ///
 306:          /// </summary>
 307:          [NotMapped]
 308:          public int FamilyTypeId
 309:          {
 310:              get
 311:              {
 312:                  return (int)Ia.Ngn.Cl.Model.Business.Huawei.Ont.FamilyTypeFromEquipmentType(this.EquipmentType);
 313:              }
 314:          }
 315:   
 316:          ////////////////////////////////////////////////////////////////////////////
 317:   
 318:          /// <summary>
 319:          ///
 320:          /// </summary>
 321:          public bool Equal(Ia.Ngn.Cl.Model.Huawei.EmsOnt b)
 322:          {
 323:              // below: this will not check the Id, Created, Updated fields
 324:              bool areEqual;
 325:   
 326:              if (this.DID != b.DID) areEqual = false;
 327:              else if (this.FN != b.FN) areEqual = false;
 328:              else if (this.SN != b.SN) areEqual = false;
 329:              else if (this.PN != b.PN) areEqual = false;
 330:              else if (this.ONTID != b.ONTID) areEqual = false;
 331:              else if (this.NAME != b.NAME) areEqual = false;
 332:              else if (this.ALIAS != b.ALIAS) areEqual = false;
 333:              else if (this.CAPABPROF != b.CAPABPROF) areEqual = false;
 334:              else if (this.VENDORID != b.VENDORID) areEqual = false;
 335:              else if (this.EQUIPMENTID != b.EQUIPMENTID) areEqual = false;
 336:              else if (this.MAINSOFTVERSION != b.MAINSOFTVERSION) areEqual = false;
 337:              else if (this.AUTH != b.AUTH) areEqual = false;
 338:              else if (this.AUTHTIMEOUT != b.AUTHTIMEOUT) areEqual = false;
 339:              else if (this.LINEPROF != b.LINEPROF) areEqual = false;
 340:              else if (this.SRVPROF != b.SRVPROF) areEqual = false;
 341:              else if (this.SERIALNUM != b.SERIALNUM) areEqual = false;
 342:              else if (this.LOID != b.LOID) areEqual = false;
 343:              else if (this.CHECKCODE != b.CHECKCODE) areEqual = false;
 344:              else if (this.PWD != b.PWD) areEqual = false;
 345:              else if (this.ALMPROF != b.ALMPROF) areEqual = false;
 346:              else if (this.DEV != b.DEV) areEqual = false;
 347:              else if (this.VLAN != b.VLAN) areEqual = false;
 348:              else if (this.PRI != b.PRI) areEqual = false;
 349:              else if (this.IP != b.IP) areEqual = false;
 350:              else if (this.MASK != b.MASK) areEqual = false;
 351:              else if (this.GATE != b.GATE) areEqual = false;
 352:              else if (this.ROUTEIP != b.ROUTEIP) areEqual = false;
 353:              else if (this.ROUTEMASK != b.ROUTEMASK) areEqual = false;
 354:              else if (this.NEXTHOP != b.NEXTHOP) areEqual = false;
 355:              else if (this.SNMPPROF != b.SNMPPROF) areEqual = false;
 356:              else if (this.OPTALMPROF != b.OPTALMPROF) areEqual = false;
 357:              else if (this.VAPROF != b.VAPROF) areEqual = false;
 358:              else if (this.MACLEARN != b.MACLEARN) areEqual = false;
 359:              else if (this.SRVLEVELPROF != b.SRVLEVELPROF) areEqual = false;
 360:              else if (this.LSTUPTIME != b.LSTUPTIME) areEqual = false;
 361:              else if (this.LSTDOWNTIME != b.LSTDOWNTIME) areEqual = false;
 362:              else if (this.DEVCURRENTTIME != b.DEVCURRENTTIME) areEqual = false;
 363:              else if (this.VASPROFILESET != b.VASPROFILESET) areEqual = false;
 364:              else if (this.HARDWAREVERSION != b.HARDWAREVERSION) areEqual = false;
 365:              else if (this.OPERSTATE != b.OPERSTATE) areEqual = false;
 366:              else if (this.DEVNAME != b.DEVNAME) areEqual = false;
 367:              else if (this.BINDWIDTHTYPE != b.BINDWIDTHTYPE) areEqual = false;
 368:              else if (this.EmsPort.Id != b.EmsPort.Id) areEqual = false;
 369:              else if (this.Access.Id != b.Access.Id) areEqual = false;
 370:              else areEqual = true;
 371:   
 372:              return areEqual;
 373:          }
 374:   
 375:          ////////////////////////////////////////////////////////////////////////////
 376:   
 377:          /// <summary>
 378:          ///
 379:          /// </summary>
 380:          public bool Update(Ia.Ngn.Cl.Model.Huawei.EmsOnt updateItem)
 381:          {
 382:              // below: this will not update Id, Created
 383:              bool updated;
 384:   
 385:              updated = false;
 386:   
 387:              if (this.DID != updateItem.DID) { this.DID = updateItem.DID; updated = true; }
 388:              if (this.FN != updateItem.FN) { this.FN = updateItem.FN; updated = true; }
 389:              if (this.SN != updateItem.SN) { this.SN = updateItem.SN; updated = true; }
 390:              if (this.PN != updateItem.PN) { this.PN = updateItem.PN; updated = true; }
 391:              if (this.ONTID != updateItem.ONTID) { this.ONTID = updateItem.ONTID; updated = true; }
 392:              if (this.NAME != updateItem.NAME) { this.NAME = updateItem.NAME; updated = true; }
 393:              if (this.ALIAS != updateItem.ALIAS) { this.ALIAS = updateItem.ALIAS; updated = true; }
 394:              if (this.CAPABPROF != updateItem.CAPABPROF) { this.CAPABPROF = updateItem.CAPABPROF; updated = true; }
 395:              if (this.VENDORID != updateItem.VENDORID) { this.VENDORID = updateItem.VENDORID; updated = true; }
 396:              if (this.EQUIPMENTID != updateItem.EQUIPMENTID) { this.EQUIPMENTID = updateItem.EQUIPMENTID; updated = true; }
 397:              if (this.MAINSOFTVERSION != updateItem.MAINSOFTVERSION) { this.MAINSOFTVERSION = updateItem.MAINSOFTVERSION; updated = true; }
 398:              if (this.AUTH != updateItem.AUTH) { this.AUTH = updateItem.AUTH; updated = true; }
 399:              if (this.AUTHTIMEOUT != updateItem.AUTHTIMEOUT) { this.AUTHTIMEOUT = updateItem.AUTHTIMEOUT; updated = true; }
 400:              if (this.LINEPROF != updateItem.LINEPROF) { this.LINEPROF = updateItem.LINEPROF; updated = true; }
 401:              if (this.SRVPROF != updateItem.SRVPROF) { this.SRVPROF = updateItem.SRVPROF; updated = true; }
 402:              if (this.SERIALNUM != updateItem.SERIALNUM) { this.SERIALNUM = updateItem.SERIALNUM; updated = true; }
 403:              if (this.LOID != updateItem.LOID) { this.LOID = updateItem.LOID; updated = true; }
 404:              if (this.CHECKCODE != updateItem.CHECKCODE) { this.CHECKCODE = updateItem.CHECKCODE; updated = true; }
 405:              if (this.PWD != updateItem.PWD) { this.PWD = updateItem.PWD; updated = true; }
 406:              if (this.ALMPROF != updateItem.ALMPROF) { this.ALMPROF = updateItem.ALMPROF; updated = true; }
 407:              if (this.DEV != updateItem.DEV) { this.DEV = updateItem.DEV; updated = true; }
 408:              if (this.VLAN != updateItem.VLAN) { this.VLAN = updateItem.VLAN; updated = true; }
 409:              if (this.PRI != updateItem.PRI) { this.PRI = updateItem.PRI; updated = true; }
 410:              if (this.IP != updateItem.IP) { this.IP = updateItem.IP; updated = true; }
 411:              if (this.MASK != updateItem.MASK) { this.MASK = updateItem.MASK; updated = true; }
 412:              if (this.GATE != updateItem.GATE) { this.GATE = updateItem.GATE; updated = true; }
 413:              if (this.ROUTEIP != updateItem.ROUTEIP) { this.ROUTEIP = updateItem.ROUTEIP; updated = true; }
 414:              if (this.ROUTEMASK != updateItem.ROUTEMASK) { this.ROUTEMASK = updateItem.ROUTEMASK; updated = true; }
 415:              if (this.NEXTHOP != updateItem.NEXTHOP) { this.NEXTHOP = updateItem.NEXTHOP; updated = true; }
 416:              if (this.SNMPPROF != updateItem.SNMPPROF) { this.SNMPPROF = updateItem.SNMPPROF; updated = true; }
 417:              if (this.OPTALMPROF != updateItem.OPTALMPROF) { this.OPTALMPROF = updateItem.OPTALMPROF; updated = true; }
 418:              if (this.VAPROF != updateItem.VAPROF) { this.VAPROF = updateItem.VAPROF; updated = true; }
 419:              if (this.MACLEARN != updateItem.MACLEARN) { this.MACLEARN = updateItem.MACLEARN; updated = true; }
 420:              if (this.SRVLEVELPROF != updateItem.SRVLEVELPROF) { this.SRVLEVELPROF = updateItem.SRVLEVELPROF; updated = true; }
 421:              if (this.LSTUPTIME != updateItem.LSTUPTIME) { this.LSTUPTIME = updateItem.LSTUPTIME; updated = true; }
 422:              if (this.LSTDOWNTIME != updateItem.LSTDOWNTIME) { this.LSTDOWNTIME = updateItem.LSTDOWNTIME; updated = true; }
 423:              if (this.DEVCURRENTTIME != updateItem.DEVCURRENTTIME) { this.DEVCURRENTTIME = updateItem.DEVCURRENTTIME; updated = true; }
 424:              if (this.VASPROFILESET != updateItem.VASPROFILESET) { this.VASPROFILESET = updateItem.VASPROFILESET; updated = true; }
 425:              if (this.HARDWAREVERSION != updateItem.HARDWAREVERSION) { this.HARDWAREVERSION = updateItem.HARDWAREVERSION; updated = true; }
 426:              if (this.OPERSTATE != updateItem.OPERSTATE) { this.OPERSTATE = updateItem.OPERSTATE; updated = true; }
 427:              if (this.DEVNAME != updateItem.DEVNAME) { this.DEVNAME = updateItem.DEVNAME; updated = true; }
 428:              if (this.BINDWIDTHTYPE != updateItem.BINDWIDTHTYPE) { this.BINDWIDTHTYPE = updateItem.BINDWIDTHTYPE; updated = true; }
 429:              //if (this.Port.Id != updateItem.Port.Id) { this.Port = updateItem.Port; updated = true; }
 430:              if (this.Access != updateItem.Access) { this.Access = updateItem.Access; updated = true; }
 431:   
 432:              if (updated) this.Updated = DateTime.UtcNow.AddHours(3);
 433:   
 434:              return updated;
 435:          }
 436:   
 437:          ////////////////////////////////////////////////////////////////////////////
 438:          ////////////////////////////////////////////////////////////////////////////
 439:      }
 440:   
 441:      ////////////////////////////////////////////////////////////////////////////
 442:      ////////////////////////////////////////////////////////////////////////////
 443:  }