)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » Seruattr (Ia.Ftn.Cl.Models.Business.Huawei)

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

SERUATTR Signaling Service Processing System (SPS) support class for Huawei's Fixed Telecommunications Network (FTN) business model.

    1:  
    2: using System.Collections.Generic;
    3:  
    4: namespace Ia.Ftn.Cl.Models.Business.Huawei
    5: {
    6:     ////////////////////////////////////////////////////////////////////////////
    7:  
    8:     /// <summary publish="true">
    9:     /// SERUATTR Signaling Service Processing System (SPS) support class for Huawei's Fixed Telecommunications Network (FTN) business model.
   10:     /// </summary>
   11:     /// 
   12:     /// <remarks> 
   13:     /// Copyright © 2018-2019 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   14:     /// </remarks> 
   15:     public class Seruattr
   16:     {
   17:         /// <summary/>
   18:         public static Dictionary<int, string> RnidxRouteName { get; } = new Dictionary<int, string>
   19:         {
   20:             { 0, "Huawei IMS" },
   21:             { 1, "Nokia IMS" },
   22:             { 2, "Siemens EWSD Copper" },
   23:             { -1, "Unknown" }
   24:         };
   25:  
   26:         /// <summary/>
   27:         public Seruattr() { }
   28:  
   29:         ////////////////////////////////////////////////////////////////////////////
   30:  
   31:         /// <summary>
   32:         ///
   33:         /// </summary>
   34:         public static string SeruattrId(string Usrnum)
   35:         {
   36:             int serviceType;
   37:             string serviceId;
   38:  
   39:             serviceType = Ia.Ftn.Cl.Models.Business.Service.ServiceType.ImsService;
   40:  
   41:             serviceId = Ia.Ftn.Cl.Models.Business.Service.ServiceToServiceId(Usrnum, serviceType);
   42:  
   43:             return serviceId;
   44:         }
   45:  
   46:         ////////////////////////////////////////////////////////////////////////////
   47:  
   48:         /// <summary>
   49:         ///
   50:         /// </summary>
   51:         public static Ia.Ftn.Cl.Models.Business.Default.SwitchRoute RnidxRouteToSwitchRoute(int rnidxRoute)
   52:         {
   53:             Ia.Ftn.Cl.Models.Business.Default.SwitchRoute switchRoute;
   54:  
   55:             switch (rnidxRoute)
   56:             {
   57:                 case 0: switchRoute = Ia.Ftn.Cl.Models.Business.Default.SwitchRoute.HuaweiIms; break;
   58:                 case 1: switchRoute = Ia.Ftn.Cl.Models.Business.Default.SwitchRoute.NokiaIms; break;
   59:                 case 2: switchRoute = Ia.Ftn.Cl.Models.Business.Default.SwitchRoute.SiemensEwsdCopper; break;
   60:                 default: switchRoute = Ia.Ftn.Cl.Models.Business.Default.SwitchRoute.Unknown; break;
   61:             }
   62:  
   63:             return switchRoute;
   64:         }
   65:  
   66:         ////////////////////////////////////////////////////////////////////////////
   67:  
   68:         /// <summary>
   69:         ///
   70:         /// </summary>
   71:         public static int SwitchRouteToRnidxRoute(Ia.Ftn.Cl.Models.Business.Default.SwitchRoute switchRoute)
   72:         {
   73:             int rnidxRoute;
   74:  
   75:             switch (switchRoute)
   76:             {
   77:                 case Ia.Ftn.Cl.Models.Business.Default.SwitchRoute.HuaweiIms: rnidxRoute = 0; break;
   78:                 case Ia.Ftn.Cl.Models.Business.Default.SwitchRoute.NokiaIms: rnidxRoute = 1; break;
   79:                 case Ia.Ftn.Cl.Models.Business.Default.SwitchRoute.SiemensEwsdCopper: rnidxRoute = 2; break;
   80:                 default: rnidxRoute = -1; break;
   81:             }
   82:  
   83:             return rnidxRoute;
   84:         }
   85:  
   86:         ////////////////////////////////////////////////////////////////////////////
   87:         ////////////////////////////////////////////////////////////////////////////
   88:     }
   89:  
   90:     ////////////////////////////////////////////////////////////////////////////
   91:     ////////////////////////////////////////////////////////////////////////////
   92: }