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

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

Event-Ont class for Next Generation Network (NGN) UI model.

   1:  using System;
   2:  using System.Text;
   3:   
   4:  namespace Ia.Ngn.Cl.Model.Ui
   5:  {
   6:      ////////////////////////////////////////////////////////////////////////////
   7:   
   8:      /// <summary publish="true">
   9:      /// Event-Ont class for Next Generation Network (NGN) UI model.
  10:      /// </summary>
  11:      /// 
  12:      /// <remarks> 
  13:      /// Copyright © 2006-2018 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
  14:      ///
  15:      /// 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
  16:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  17:      ///
  18:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  19:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  20:      /// 
  21:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  22:      /// 
  23:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  24:      /// </remarks> 
  25:      public partial class Event
  26:      {
  27:          ////////////////////////////////////////////////////////////////////////////
  28:   
  29:          /// <summary>
  30:          ///
  31:          /// </summary>
  32:          public Event() { }
  33:   
  34:          /// <summary/>
  35:          public long Id { get; set; }
  36:          /// <summary/>
  37:          public int TypeId { get; set; }
  38:          /// <summary/>
  39:          public string System { get; set; }
  40:          /// <summary/>
  41:          public string Class { get; set; }
  42:          /// <summary/>
  43:          public string Aid { get; set; }
  44:          /// <summary/>
  45:          public string Cause { get; set; }
  46:          /// <summary/>
  47:          public int Number { get; set; }
  48:          /// <summary/>
  49:          public string Detail { get; set; }
  50:          /// <summary/>
  51:          public string Severity { get; set; }
  52:          /// <summary/>
  53:          public string SeverityEffect { get; set; }
  54:          /// <summary/>
  55:          public DateTime EventTime { get; set; }
  56:          /// <summary/>
  57:          public DateTime? NodeTime { get; set; }
  58:          /// <summary/>
  59:          public DateTime Created { get; set; }
  60:   
  61:          /// <summary/>
  62:          public string OntId { get; set; }
  63:          /// <summary/>
  64:          public string Serial { get; set; }
  65:          /// <summary/>
  66:          public string AccessName { get; set; }
  67:   
  68:          ////////////////////////////////////////////////////////////////////////////
  69:   
  70:          /// <summary>
  71:          ///
  72:          /// </summary>
  73:          public override string ToString()
  74:          {
  75:              StringBuilder sb;
  76:   
  77:              sb = new StringBuilder();
  78:   
  79:              sb.AppendLine("Class: " + this.Class);
  80:              sb.AppendLine("System: " + this.System);
  81:              sb.AppendLine("Severity: " + this.Severity);
  82:              sb.AppendLine("SeverityEffect: " + this.SeverityEffect);
  83:              sb.AppendLine("Aid: " + this.Aid);
  84:              sb.AppendLine("Cause: " + this.Cause);
  85:              sb.AppendLine("Number: " + this.Number);
  86:              sb.AppendLine("Detail: " + this.Detail);
  87:              sb.AppendLine("Serial: " + this.Serial);
  88:              sb.AppendLine("AccessName: " + this.AccessName);
  89:              sb.AppendLine("EventTime: " + this.EventTime);
  90:              sb.AppendLine("NodeTime: " + this.NodeTime);
  91:              sb.AppendLine("Created: " + this.Created);
  92:   
  93:              return sb.ToString();
  94:          }
  95:   
  96:          ////////////////////////////////////////////////////////////////////////////
  97:   
  98:          /// <summary>
  99:          ///
 100:          /// </summary>
 101:          public string ToSimpleTextString()
 102:          {
 103:              StringBuilder sb;
 104:   
 105:              sb = new StringBuilder();
 106:   
 107:              sb.AppendLine("Class: " + this.Class);
 108:              sb.AppendLine("System: " + this.System);
 109:              //sb.AppendLine("Severity: " + this.Severity);
 110:              //sb.AppendLine("SeverityEffect: " + this.SeverityEffect);
 111:              sb.AppendLine("Aid: " + this.Aid);
 112:              sb.AppendLine("Cause: " + this.Cause);
 113:              //sb.AppendLine("Number: " + this.Number);
 114:              sb.AppendLine("Detail: " + this.Detail);
 115:              sb.AppendLine("Serial: " + this.Serial);
 116:              sb.AppendLine("AccessName: " + this.AccessName);
 117:              sb.AppendLine("EventTime: " + this.EventTime);
 118:              //sb.AppendLine("NodeTime: " + this.NodeTime);
 119:              //sb.AppendLine("Created: " + this.Created);
 120:   
 121:              return sb.ToString();
 122:          }
 123:   
 124:          ////////////////////////////////////////////////////////////////////////////    
 125:          ////////////////////////////////////////////////////////////////////////////    
 126:      }
 127:   
 128:      ////////////////////////////////////////////////////////////////////////////
 129:      ////////////////////////////////////////////////////////////////////////////   
 130:  }