Professional Applications Programmers/Consultants برمجة واستشارات تطبيقات الإنترنت
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 Next Generation Network (NGN) UI model.

   1:  using System;
   2:  using System.Text;
   3:  using System.ComponentModel.DataAnnotations;
   4:  using System.Runtime.Serialization;
   5:   
   6:  namespace Ia.Ngn.Cl.Model.Ui.Huawei
   7:  {
   8:      ////////////////////////////////////////////////////////////////////////////
   9:   
  10:      /// <summary publish="true">
  11:      /// Huawei's Sbr Entity Framework class for Next Generation Network (NGN) UI model.
  12:      /// </summary>
  13:      /// 
  14:      /// <remarks> 
  15:      /// Copyright © 2014-2017 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:      [DataContract(IsReference = true, Namespace = "kw.com.ia.ngn.api", Name = "apiHuSbr")]
  28:      public partial class HuSbr
  29:      {
  30:          ////////////////////////////////////////////////////////////////////////////
  31:   
  32:          /// <summary>
  33:          ///
  34:          /// </summary>
  35:          public HuSbr()
  36:          {
  37:   
  38:          }
  39:   
  40:          ////////////////////////////////////////////////////////////////////////////
  41:   
  42:          /// <summary>
  43:          ///
  44:          /// </summary>
  45:          [DataMember(Name = "id")]
  46:          public long Id { get; set; }
  47:   
  48:          ////////////////////////////////////////////////////////////////////////////
  49:   
  50:          /// <summary>
  51:          ///
  52:          /// </summary>
  53:          [DataMember(Name = "iMPU")]
  54:          public string IMPU { get; set; }
  55:   
  56:          ////////////////////////////////////////////////////////////////////////////
  57:   
  58:          /// <summary>
  59:          ///
  60:          /// </summary>
  61:          [DataMember(Name = "nSABRC")]
  62:          public bool NSABRC { get; set; }
  63:   
  64:          ////////////////////////////////////////////////////////////////////////////
  65:   
  66:          /// <summary>
  67:          ///
  68:          /// </summary>
  69:          [DataMember(Name = "nSCLIP")]
  70:          public bool NSCLIP { get; set; }
  71:   
  72:          ////////////////////////////////////////////////////////////////////////////
  73:   
  74:          /// <summary>
  75:          ///
  76:          /// </summary>
  77:          [DataMember(Name = "nSCFU")]
  78:          public bool NSCFU { get; set; }
  79:   
  80:          ////////////////////////////////////////////////////////////////////////////
  81:   
  82:          /// <summary>
  83:          ///
  84:          /// </summary>
  85:          [DataMember(Name = "nSCW")]
  86:          public bool NSCW { get; set; }
  87:   
  88:          ////////////////////////////////////////////////////////////////////////////
  89:   
  90:          /// <summary>
  91:          ///
  92:          /// </summary>
  93:          [DataMember(Name = "nS3PTY")]
  94:          public bool NS3PTY { get; set; }
  95:   
  96:          ////////////////////////////////////////////////////////////////////////////
  97:   
  98:          /// <summary>
  99:          ///
 100:          /// </summary>
 101:          [DataMember(Name = "nSNPTY")]
 102:          public bool NSNPTY { get; set; }
 103:   
 104:          ////////////////////////////////////////////////////////////////////////////
 105:   
 106:          /// <summary>
 107:          ///
 108:          /// </summary>
 109:          [DataMember(Name = "nSWAKE_UP")]
 110:          public bool NSWAKE_UP { get; set; }
 111:   
 112:          ////////////////////////////////////////////////////////////////////////////
 113:   
 114:          /// <summary>
 115:          ///
 116:          /// </summary>
 117:          [DataMember(Name = "nSCBA")]
 118:          public bool NSCBA { get; set; }
 119:   
 120:          ////////////////////////////////////////////////////////////////////////////
 121:   
 122:          /// <summary>
 123:          ///
 124:          /// </summary>
 125:          [DataMember(Name = "iTT")]
 126:          public bool ITT { get; set; }
 127:   
 128:          ////////////////////////////////////////////////////////////////////////////
 129:   
 130:          /// <summary>
 131:          ///
 132:          /// </summary>
 133:          [DataMember(Name = "cOP")]
 134:          public string COP { get; set; }
 135:   
 136:          ////////////////////////////////////////////////////////////////////////////
 137:   
 138:          /// <summary>
 139:          ///
 140:          /// </summary>
 141:          [DataMember(Name = "nSFAX")]
 142:          public bool NSFAX { get; set; }
 143:   
 144:          ////////////////////////////////////////////////////////////////////////////
 145:   
 146:          /// <summary>
 147:          ///
 148:          /// </summary>
 149:          [DataMember(Name = "nSHOLD")]
 150:          public bool NSHOLD { get; set; }
 151:   
 152:          ////////////////////////////////////////////////////////////////////////////
 153:   
 154:          /// <summary>
 155:          ///
 156:          /// </summary>
 157:          [DataMember(Name = "lP")]
 158:          public int LP { get; set; }
 159:   
 160:          ////////////////////////////////////////////////////////////////////////////
 161:   
 162:          /// <summary>
 163:          ///
 164:          /// </summary>
 165:          [DataMember(Name = "cSC")]
 166:          public int CSC { get; set; }
 167:   
 168:          ////////////////////////////////////////////////////////////////////////////
 169:   
 170:          /// <summary>
 171:          ///
 172:          /// </summary>
 173:          [DataMember(Name = "created")]
 174:          public DateTime Created { get; set; }
 175:   
 176:          ////////////////////////////////////////////////////////////////////////////
 177:   
 178:          /// <summary>
 179:          ///
 180:          /// </summary>
 181:          [DataMember(Name = "updated")]
 182:          public DateTime Updated { get; set; }
 183:   
 184:          ////////////////////////////////////////////////////////////////////////////
 185:          ////////////////////////////////////////////////////////////////////////////
 186:   
 187:          /// <summary>
 188:          ///
 189:          /// </summary>
 190:          public string ToSimpleTextString()
 191:          {
 192:              StringBuilder sb;
 193:   
 194:              sb = new StringBuilder();
 195:   
 196:              //sb.AppendLine("Vendor: " + Ia.Ngn.Cl.Model.Business.NetworkDesignDocument.Vendor.Huawei.Name);
 197:              sb.AppendLine("IMPU: " + this.IMPU);
 198:              sb.AppendLine("NSABRC: " + Ia.Cl.Model.Default.YesNoText(this.NSABRC));
 199:              sb.AppendLine("NSCLIP: " + Ia.Cl.Model.Default.YesNoText(this.NSCLIP));
 200:              sb.AppendLine("NSCFU: " + Ia.Cl.Model.Default.YesNoText(this.NSCFU));
 201:              sb.AppendLine("NSCW: " + Ia.Cl.Model.Default.YesNoText(this.NSCW));
 202:              sb.AppendLine("NS3PTY: " + Ia.Cl.Model.Default.YesNoText(this.NS3PTY));
 203:              sb.AppendLine("NSNPTY: " + Ia.Cl.Model.Default.YesNoText(this.NSNPTY));
 204:              sb.AppendLine("NSWAKE_UP: " + Ia.Cl.Model.Default.YesNoText(this.NSWAKE_UP));
 205:              sb.AppendLine("NSCBA: " + Ia.Cl.Model.Default.YesNoText(this.NSCBA));
 206:              sb.AppendLine("ITT: " + Ia.Cl.Model.Default.YesNoText(this.ITT));
 207:              sb.AppendLine("COP: " + this.COP);
 208:              sb.AppendLine("NSFAX: " + Ia.Cl.Model.Default.YesNoText(this.NSFAX));
 209:              sb.AppendLine("NSHOLD: " + Ia.Cl.Model.Default.YesNoText(this.NSHOLD));
 210:              sb.AppendLine("LP: " + this.LP);
 211:              sb.AppendLine("CSC: " + this.CSC);
 212:   
 213:              return sb.ToString();
 214:          }
 215:   
 216:          ////////////////////////////////////////////////////////////////////////////
 217:          ////////////////////////////////////////////////////////////////////////////
 218:      }
 219:   
 220:      ////////////////////////////////////////////////////////////////////////////
 221:      ////////////////////////////////////////////////////////////////////////////
 222:  }