شركة التطبيقات المتكاملة لتصميم النظم البرمجية الخاصة

Integrated Applications Programming Company

Skip Navigation Links

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

Service Serial Request Service support class of Next Generation Network'a (NGN's) business model.

   1:  using System;
   2:   
   3:  namespace Ia.Ngn.Cl.Model.Business
   4:  {
   5:      ////////////////////////////////////////////////////////////////////////////
   6:   
   7:      /// <summary publish="true">
   8:      /// Service Serial Request Service support class of Next Generation Network'a (NGN's) business model.
   9:      /// </summary>
  10:      /// 
  11:      /// <remarks> 
  12:      /// Copyright © 2018-2019 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  13:      ///
  14:      /// 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
  15:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  16:      ///
  17:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  18:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  19:      /// 
  20:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  21:      /// 
  22:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  23:      /// </remarks> 
  24:      public partial class ServiceSerialRequestService : IEquatable<ServiceSerialRequestService>
  25:      {
  26:          ////////////////////////////////////////////////////////////////////////////
  27:   
  28:          /// <summary>
  29:          /// 
  30:          /// </summary>
  31:          public ServiceSerialRequestService() { }
  32:   
  33:          /// <summary/>
  34:          public string Id { get; set; }
  35:          /// <summary/>
  36:          public string Service { get; set; }
  37:          /// <summary/>
  38:          public int Serial { get; set; }
  39:          /// <summary/>
  40:          public bool Provisioned { get; set; }
  41:          /// <summary/>
  42:          public bool CallWaiting { get; set; }
  43:          /// <summary/>
  44:          public bool InternationalCallingUserControlled { get; set; }
  45:          /// <summary/>
  46:          public bool CallerId { get; set; }
  47:          /// <summary/>
  48:          public bool CallForwarding { get; set; }
  49:          /// <summary/>
  50:          public bool CallBarring { get; set; }
  51:          /// <summary/>
  52:          public bool ConferenceCall { get; set; }
  53:          /// <summary/>
  54:          public bool AbbriviatedCalling { get; set; }
  55:          /// <summary/>
  56:          public bool InternationalCalling { get; set; }
  57:          /// <summary/>
  58:          public bool AlarmCall { get; set; }
  59:          /// <summary/>
  60:          public bool WakeupCall { get; set; }
  61:          /// <summary/>
  62:          public bool BarringOfAllOutgoingCalls { get; set; }
  63:          /// <summary/>
  64:          public bool BarringOfAllIncomingCalls { get; set; }
  65:   
  66:          ////////////////////////////////////////////////////////////////////////////
  67:   
  68:          /// <summary>
  69:          /// 
  70:          /// </summary>
  71:          public static bool operator ==(ServiceSerialRequestService obj1, ServiceSerialRequestService obj2)
  72:          {
  73:              if (ReferenceEquals(obj1, obj2))
  74:              {
  75:                  return true;
  76:              }
  77:   
  78:              if (ReferenceEquals(obj1, null))
  79:              {
  80:                  return false;
  81:              }
  82:              if (ReferenceEquals(obj2, null))
  83:              {
  84:                  return false;
  85:              }
  86:   
  87:              return (obj1.Id == obj2.Id &&
  88:              obj1.Service == obj2.Service &&
  89:              obj1.Serial == obj2.Serial &&
  90:              obj1.Provisioned == obj2.Provisioned &&
  91:              obj1.CallWaiting == obj2.CallWaiting &&
  92:              obj1.InternationalCallingUserControlled == obj2.InternationalCallingUserControlled &&
  93:              obj1.CallerId == obj2.CallerId &&
  94:              obj1.CallForwarding == obj2.CallForwarding &&
  95:              obj1.CallBarring == obj2.CallBarring &&
  96:              obj1.ConferenceCall == obj2.ConferenceCall &&
  97:              obj1.AbbriviatedCalling == obj2.AbbriviatedCalling &&
  98:              obj1.InternationalCalling == obj2.InternationalCalling &&
  99:              obj1.AlarmCall == obj2.AlarmCall &&
 100:              obj1.WakeupCall == obj2.WakeupCall &&
 101:              obj1.BarringOfAllOutgoingCalls == obj2.BarringOfAllOutgoingCalls &&
 102:              obj1.BarringOfAllIncomingCalls == obj2.BarringOfAllIncomingCalls);
 103:          }
 104:   
 105:          ////////////////////////////////////////////////////////////////////////////
 106:   
 107:          /// <summary>
 108:          /// 
 109:          /// </summary>
 110:          public static bool operator !=(ServiceSerialRequestService obj1, ServiceSerialRequestService obj2)
 111:          {
 112:              return !(obj1 == obj2);
 113:          }
 114:   
 115:          ////////////////////////////////////////////////////////////////////////////
 116:   
 117:          /// <summary>
 118:          /// 
 119:          /// </summary>
 120:          public bool Equals(ServiceSerialRequestService obj1)
 121:          {
 122:              if (ReferenceEquals(null, obj1))
 123:              {
 124:                  return false;
 125:              }
 126:              if (ReferenceEquals(this, obj1))
 127:              {
 128:                  return true;
 129:              }
 130:   
 131:              return (obj1.Id == Id &&
 132:              obj1.Service == Service &&
 133:              obj1.Serial == Serial &&
 134:              obj1.Provisioned == Provisioned &&
 135:              obj1.CallWaiting == CallWaiting &&
 136:              obj1.InternationalCallingUserControlled == InternationalCallingUserControlled &&
 137:              obj1.CallerId == CallerId &&
 138:              obj1.CallForwarding == CallForwarding &&
 139:              obj1.CallBarring == CallBarring &&
 140:              obj1.ConferenceCall == ConferenceCall &&
 141:              obj1.AbbriviatedCalling == AbbriviatedCalling &&
 142:              obj1.InternationalCalling == InternationalCalling &&
 143:              obj1.AlarmCall == AlarmCall &&
 144:              obj1.WakeupCall == WakeupCall &&
 145:              obj1.BarringOfAllOutgoingCalls == BarringOfAllOutgoingCalls &&
 146:              obj1.BarringOfAllIncomingCalls == BarringOfAllIncomingCalls);
 147:          }
 148:   
 149:          ////////////////////////////////////////////////////////////////////////////
 150:   
 151:          /// <summary>
 152:          /// 
 153:          /// </summary>
 154:          public override bool Equals(object obj)
 155:          {
 156:              if (ReferenceEquals(null, obj))
 157:              {
 158:                  return false;
 159:              }
 160:              if (ReferenceEquals(this, obj))
 161:              {
 162:                  return true;
 163:              }
 164:   
 165:              return obj.GetType() == GetType() && Equals((ServiceSerialRequestService)obj);
 166:          }
 167:   
 168:          ////////////////////////////////////////////////////////////////////////////
 169:   
 170:          /// <summary>
 171:          /// 
 172:          /// </summary>
 173:          public override int GetHashCode()
 174:          {
 175:              unchecked
 176:              {
 177:                  int hashCode = Id.GetHashCode();
 178:                  hashCode = (hashCode * 397) ^ Service.GetHashCode();
 179:                  hashCode = (hashCode * 397) ^ Serial.GetHashCode();
 180:                  hashCode = (hashCode * 397) ^ Provisioned.GetHashCode();
 181:                  hashCode = (hashCode * 397) ^ CallWaiting.GetHashCode();
 182:                  hashCode = (hashCode * 397) ^ InternationalCallingUserControlled.GetHashCode();
 183:                  hashCode = (hashCode * 397) ^ CallerId.GetHashCode();
 184:                  hashCode = (hashCode * 397) ^ CallForwarding.GetHashCode();
 185:                  hashCode = (hashCode * 397) ^ CallBarring.GetHashCode();
 186:                  hashCode = (hashCode * 397) ^ ConferenceCall.GetHashCode();
 187:                  hashCode = (hashCode * 397) ^ AbbriviatedCalling.GetHashCode();
 188:                  hashCode = (hashCode * 397) ^ InternationalCalling.GetHashCode();
 189:                  hashCode = (hashCode * 397) ^ AlarmCall.GetHashCode();
 190:                  hashCode = (hashCode * 397) ^ WakeupCall.GetHashCode();
 191:                  hashCode = (hashCode * 397) ^ BarringOfAllOutgoingCalls.GetHashCode();
 192:                  hashCode = (hashCode * 397) ^ BarringOfAllIncomingCalls.GetHashCode();
 193:                  return hashCode;
 194:              }
 195:          }
 196:   
 197:          ////////////////////////////////////////////////////////////////////////////
 198:          ////////////////////////////////////////////////////////////////////////////
 199:      }
 200:   
 201:      ////////////////////////////////////////////////////////////////////////////
 202:      ////////////////////////////////////////////////////////////////////////////
 203:  }