)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Skip Navigation LinksHome » Code Library » HuSbr

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

Huawei's Sbr Entity Framework class for Optical Fiber Network (OFN) UI model.

    1: using System;
    2: using System.Runtime.Serialization;
    3: using System.Text;
    4:  
    5: namespace Ia.Ngn.Cl.Model.Ui.Huawei
    6: {
    7:     ////////////////////////////////////////////////////////////////////////////
    8:  
    9:     /// <summary publish="true">
   10:     /// Huawei's Sbr Entity Framework class for Optical Fiber Network (OFN) UI model.
   11:     /// </summary>
   12:     /// 
   13:     /// <remarks> 
   14:     /// Copyright © 2014-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   15:     ///
   16:     /// 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
   17:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   18:     ///
   19:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   20:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   21:     /// 
   22:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   23:     /// 
   24:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   25:     /// </remarks> 
   26:     [DataContract(IsReference = true, Namespace = "kw.com.ia.ngn.api", Name = "apiHuSbr")]
   27:     public class HuSbr
   28:     {
   29:         ////////////////////////////////////////////////////////////////////////////
   30:  
   31:         /// <summary>
   32:         ///
   33:         /// </summary>
   34:         public HuSbr()
   35:         {
   36:  
   37:         }
   38:  
   39:         ////////////////////////////////////////////////////////////////////////////
   40:  
   41:         /// <summary>
   42:         ///
   43:         /// </summary>
   44:         [DataMember(Name = "id")]
   45:         public long Id { get; set; }
   46:  
   47:         ////////////////////////////////////////////////////////////////////////////
   48:  
   49:         /// <summary>
   50:         ///
   51:         /// </summary>
   52:         [DataMember(Name = "iMPU")]
   53:         public string IMPU { get; set; }
   54:  
   55:         ////////////////////////////////////////////////////////////////////////////
   56:  
   57:         /// <summary>
   58:         ///
   59:         /// </summary>
   60:         [DataMember(Name = "nSABRC")]
   61:         public bool NSABRC { get; set; }
   62:  
   63:         ////////////////////////////////////////////////////////////////////////////
   64:  
   65:         /// <summary>
   66:         ///
   67:         /// </summary>
   68:         [DataMember(Name = "nSCLIP")]
   69:         public bool NSCLIP { get; set; }
   70:  
   71:         ////////////////////////////////////////////////////////////////////////////
   72:  
   73:         /// <summary>
   74:         ///
   75:         /// </summary>
   76:         [DataMember(Name = "nSCFU")]
   77:         public bool NSCFU { get; set; }
   78:  
   79:         ////////////////////////////////////////////////////////////////////////////
   80:  
   81:         /// <summary>
   82:         ///
   83:         /// </summary>
   84:         [DataMember(Name = "nSCW")]
   85:         public bool NSCW { get; set; }
   86:  
   87:         ////////////////////////////////////////////////////////////////////////////
   88:  
   89:         /// <summary>
   90:         ///
   91:         /// </summary>
   92:         [DataMember(Name = "nS3PTY")]
   93:         public bool NS3PTY { get; set; }
   94:  
   95:         ////////////////////////////////////////////////////////////////////////////
   96:  
   97:         /// <summary>
   98:         ///
   99:         /// </summary>
  100:         [DataMember(Name = "nSNPTY")]
  101:         public bool NSNPTY { get; set; }
  102:  
  103:         ////////////////////////////////////////////////////////////////////////////
  104:  
  105:         /// <summary>
  106:         ///
  107:         /// </summary>
  108:         [DataMember(Name = "nSWAKE_UP")]
  109:         public bool NSWAKE_UP { get; set; }
  110:  
  111:         ////////////////////////////////////////////////////////////////////////////
  112:  
  113:         /// <summary>
  114:         ///
  115:         /// </summary>
  116:         [DataMember(Name = "nSCBA")]
  117:         public bool NSCBA { get; set; }
  118:  
  119:         ////////////////////////////////////////////////////////////////////////////
  120:  
  121:         /// <summary>
  122:         ///
  123:         /// </summary>
  124:         [DataMember(Name = "iTT")]
  125:         public bool ITT { get; set; }
  126:  
  127:         ////////////////////////////////////////////////////////////////////////////
  128:  
  129:         /// <summary>
  130:         ///
  131:         /// </summary>
  132:         [DataMember(Name = "cOP")]
  133:         public string COP { get; set; }
  134:  
  135:         ////////////////////////////////////////////////////////////////////////////
  136:  
  137:         /// <summary>
  138:         ///
  139:         /// </summary>
  140:         [DataMember(Name = "nSFAX")]
  141:         public bool NSFAX { get; set; }
  142:  
  143:         ////////////////////////////////////////////////////////////////////////////
  144:  
  145:         /// <summary>
  146:         ///
  147:         /// </summary>
  148:         [DataMember(Name = "nSHOLD")]
  149:         public bool NSHOLD { get; set; }
  150:  
  151:         ////////////////////////////////////////////////////////////////////////////
  152:  
  153:         /// <summary>
  154:         ///
  155:         /// </summary>
  156:         [DataMember(Name = "lP")]
  157:         public int LP { get; set; }
  158:  
  159:         ////////////////////////////////////////////////////////////////////////////
  160:  
  161:         /// <summary>
  162:         ///
  163:         /// </summary>
  164:         [DataMember(Name = "cSC")]
  165:         public int CSC { get; set; }
  166:  
  167:         ////////////////////////////////////////////////////////////////////////////
  168:  
  169:         /// <summary>
  170:         ///
  171:         /// </summary>
  172:         [DataMember(Name = "created")]
  173:         public DateTime Created { get; set; }
  174:  
  175:         ////////////////////////////////////////////////////////////////////////////
  176:  
  177:         /// <summary>
  178:         ///
  179:         /// </summary>
  180:         [DataMember(Name = "updated")]
  181:         public DateTime Updated { get; set; }
  182:  
  183:         ////////////////////////////////////////////////////////////////////////////
  184:         ////////////////////////////////////////////////////////////////////////////
  185:  
  186:         /// <summary>
  187:         ///
  188:         /// </summary>
  189:         public string ToSimpleTextString()
  190:         {
  191:             StringBuilder sb;
  192:  
  193:             sb = new StringBuilder();
  194:  
  195:             //sb.AppendLine("Vendor: " + Ia.Ngn.Cl.Model.Business.NetworkDesignDocument.Vendor.Huawei.Name);
  196:             sb.AppendLine("IMPU: " + this.IMPU);
  197:             sb.AppendLine("NSABRC: " + Ia.Cl.Model.Default.YesNoText(this.NSABRC));
  198:             sb.AppendLine("NSCLIP: " + Ia.Cl.Model.Default.YesNoText(this.NSCLIP));
  199:             sb.AppendLine("NSCFU: " + Ia.Cl.Model.Default.YesNoText(this.NSCFU));
  200:             sb.AppendLine("NSCW: " + Ia.Cl.Model.Default.YesNoText(this.NSCW));
  201:             sb.AppendLine("NS3PTY: " + Ia.Cl.Model.Default.YesNoText(this.NS3PTY));
  202:             sb.AppendLine("NSNPTY: " + Ia.Cl.Model.Default.YesNoText(this.NSNPTY));
  203:             sb.AppendLine("NSWAKE_UP: " + Ia.Cl.Model.Default.YesNoText(this.NSWAKE_UP));
  204:             sb.AppendLine("NSCBA: " + Ia.Cl.Model.Default.YesNoText(this.NSCBA));
  205:             sb.AppendLine("ITT: " + Ia.Cl.Model.Default.YesNoText(this.ITT));
  206:             sb.AppendLine("COP: " + this.COP);
  207:             sb.AppendLine("NSFAX: " + Ia.Cl.Model.Default.YesNoText(this.NSFAX));
  208:             sb.AppendLine("NSHOLD: " + Ia.Cl.Model.Default.YesNoText(this.NSHOLD));
  209:             sb.AppendLine("LP: " + this.LP);
  210:             sb.AppendLine("CSC: " + this.CSC);
  211:  
  212:             return sb.ToString();
  213:         }
  214:  
  215:         ////////////////////////////////////////////////////////////////////////////
  216:         ////////////////////////////////////////////////////////////////////////////
  217:     }
  218:  
  219:     ////////////////////////////////////////////////////////////////////////////
  220:     ////////////////////////////////////////////////////////////////////////////
  221: }