)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » ServiceController (Ia.Ftn.Api.Wa.Controllers)

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

Service API Controller class of Fixed Telecommunications Network (FTN) model.

    1: using Microsoft.AspNetCore.Mvc;
    2:  
    3: namespace Ia.Ftn.Api.Wa.Controllers
    4: {
    5:     ////////////////////////////////////////////////////////////////////////////
    6:  
    7:     /// <summary publish="true">
    8:     /// Service API Controller class of Fixed Telecommunications Network (FTN) model.
    9:     /// </summary>
   10:     /// 
   11:     /// <remarks> 
   12:     /// Copyright © 2015-2024 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated 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:     [ApiController]
   25:     // [Authorize]
   26:     public class ServiceController : ControllerBase
   27:     {
   28:         private static readonly object objectLock = new object();
   29:  
   30:         ////////////////////////////////////////////////////////////////////////////
   31:  
   32:         /// <summary>
   33:         /// Service: Public information about service configuration of the Fixed Telecommunications Network
   34:         /// </summary>
   35:         public ServiceController() { }
   36:  
   37:         ////////////////////////////////////////////////////////////////////////////
   38:  
   39:         /// <summary>
   40:         /// List of Kuwait FTN areas
   41:         /// </summary>
   42:         [HttpGet]
   43:         [Route("api/v1/service/kuwait-ofn-areas")]
   44:         public List<Ia.Ftn.Cl.Models.Business.Service.KuwaitFtnArea> KuwaitAreaList()
   45:         {
   46:             var list = Ia.Ftn.Cl.Models.Data.Service.KuwaitFtnAreaList;
   47:  
   48:             return list;
   49:         }
   50:  
   51:         ////////////////////////////////////////////////////////////////////////////
   52:  
   53:         /// <summary>
   54:         /// List of Kuwait areas
   55:         /// </summary>
   56:         [HttpGet]
   57:         [Route("api/v1/service/kuwait-areas")]
   58:         public List<Ia.Cl.Models.Kuwait> KuwaitList()
   59:         {
   60:             var list = Ia.Cl.Models.Kuwait.KuwaitAreaList;
   61:  
   62:             return list;
   63:         }
   64:  
   65:         ////////////////////////////////////////////////////////////////////////////
   66:  
   67:         /// <summary>
   68:         /// List of the Fixed Telecommunications Network (FTN) allowed to be provisioned domain list 
   69:         /// </summary>
   70:         [HttpGet]
   71:         [Route("api/v1/service/allowed-to-be-provisioned-domains")]
   72:         public List<int> DomainList()
   73:         {
   74:             return Ia.Ftn.Cl.Models.Business.Service.AllowedToBeProvisionedDomainList;
   75:         }
   76:  
   77:         ////////////////////////////////////////////////////////////////////////////
   78:         ////////////////////////////////////////////////////////////////////////////
   79:     }
   80: }