Exemplo n.º 1
0
        protected WebApiCallsBase(IWebServiceLocator settings)
        {
            ServiceAddress = settings.ServiceAddress + "api/";

            // User
            UserBaseUri = $"{ServiceAddress}User/";

            LoginUri  = $"{UserBaseUri}Login/";
            LogoutUri = $"{UserBaseUri}Logout/";

            SearchUserUri = $"{UserBaseUri}Search/";

            // Post
            PostBaseUri       = $"{ServiceAddress}Post/";
            FollowingPostsUri = $"{ServiceAddress}Post/Following/";

            // Follow
            FollowBaseUri  = $"{ServiceAddress}Follow/";
            FollowerUri    = $"{FollowBaseUri}Followers/";
            FollowingUri   = $"{FollowBaseUri}Following/";
            IsFollowingUri = $"{FollowBaseUri}IsFollowing/";

            // Rss
            RssUri = $"{ServiceAddress}Rss/";

            // Message
            MessageUri = $"{ServiceAddress}Message/";
        }
Exemplo n.º 2
0
 public WebApiCallsBase(IWebServiceLocator ContosoService)
 {
     /*Esta es la direccion del servicio web csharp7 en adelante*/
     ServiceAddress        = ContosoService.ServiceAddress;
     ServiceAddressAbogado = ContosoService.ServiceAddressAbogado;
     StudentBaseUri        = $"{ServiceAddress}api/Estudent";
     AbogadoBaseUri        = $"{ServiceAddressAbogado}DGI/ConsultaAbogado/SolicitudId/DGI/NCarnet";
 }
 protected WebApiCallsBase(IWebServiceLocator settings)
 {
     ServiceAddress  = settings.ServiceAddress;
     CartBaseUri     = $"{ServiceAddress}api/ShoppingCart/";
     CategoryBaseUri = $"{ServiceAddress}api/category/";
     CustomerBaseUri = $"{ServiceAddress}api/customer/";
     ProductBaseUri  = $"{ServiceAddress}api/product/";
     OrdersBaseUri   = $"{ServiceAddress}api/orders/";
 }
 protected WebApiCallsBase(IWebServiceLocator settings)
 {
     ServiceAddress = settings.ServiceAddress;
     DivisionUri    = $"{ServiceAddress}api/Division/";
     PayrollUri     = $"{ServiceAddress}api/Payroll/";
     TimeClockUri   = $"{ServiceAddress}api/TimeClock/";
     UserUri        = $"{ServiceAddress}api/User/";
     RoleUri        = $"{ServiceAddress}api/Role/";
 }
Exemplo n.º 5
0
 public PlanesController(IHttpHandler httpHandler, IWebServiceLocator webServiceLocator)
 {
     _HttpHandler       = httpHandler;
     _WebServiceLocator = webServiceLocator;
 }
Exemplo n.º 6
0
 public AttachmentController(IWebApiCalls webApiCalls, IWebServiceLocator settings)
 {
     _webApiCalls = webApiCalls;
     Settings     = settings;
 }
Exemplo n.º 7
0
 public WebApiCalls(IWebServiceLocator settings) : base(settings)
 {
 }
 public AirportsController(IHttpHandler httpHandler, IWebServiceLocator webServiceLocator)
     : base(httpHandler, webServiceLocator)
 {
 }
Exemplo n.º 9
0
 public WebApiCallsBase(IWebServiceLocator settings)
 {
     ServiceAddress  = settings.ServiceAddress;
     CustomerBaseUri = $"{ServiceAddress}api/customer/";
     DeliveryBaseUri = $"{ServiceAddress}api/delivery/";
 }
Exemplo n.º 10
0
        //Inyeccion

        public WebApiCalls(IWebServiceLocator ContosoCoreService) : base(ContosoCoreService)
        {
        }
Exemplo n.º 11
0
 protected WebApiCallsBase(IWebServiceLocator ContosoService)
 {
     ServiceAddress = ContosoService.ServiceAddress;
     StudentBaseUri = $"{ServiceAddress}api/Student";
 }
Exemplo n.º 12
0
        protected WebApiCallsBase(IWebServiceLocator settings)
        {
            ServiceAddress = settings.ServiceAddress;


            BaseUri = $"{ServiceAddress}api/";

            //Campus
            CampusWithAddressBaseUri = $"{ServiceAddress}api/Campus/GetWithAddress/";
            RoomsByCampusBaseUri     = $"{ServiceAddress}api/Room/GetByCampus/";
            GetRoomsBaseUri          = $"{ServiceAddress}api/Room/Get/";
            GetInactiveCampusesUri   = $"{ServiceAddress}api/Campus/GetInActive/";

            //Division
            DivisionWithSupervisorBaseUri         = $"{ServiceAddress}api/Division/GetWithSupervisor/";
            InActiveDivisionWithSupervisorBaseUri = $"{BaseUri}Division/GetInActive/";

            //Department
            DepartmentByDivisionBaseUri       = $"{ServiceAddress}api/Department/GetByDivision/";
            DepartmentWithDivisionBaseUri     = $"{ServiceAddress}api/Department/Get/";
            InactiveDepartmentWithDivisionUri = $"{ServiceAddress}api/Department/GetInActive";

            //Employees
            GetEmployeeByDepartmentBaseUri = $"{ServiceAddress}api/Employee/GetByDepartment/";
            GetEmployeeBaseUri             = $"{ServiceAddress}api/Employee/Get/";
            GetEmployeeLoginBaseUri        = $"{ServiceAddress}api/Employee/Login/";
            GetInactiveEmployeesBaseUri    = $"{BaseUri}Employee/GetInactive/";
            GetEmployeeUri     = $"{BaseUri}Employee/Get/";
            GetNotificationUri = $"{BaseUri}Employee/GetNotification/";

            //Budget

            BudgetCodeWithAmountBaseUri      = $"{ServiceAddress}api/BudgetCode/Get/";
            BudgetCodeWithEmployeesUri       = $"{ServiceAddress}api/EmployeeBudgetCode/GetEmployeesInBudgetCode/";
            BudgetCodesForEmployeesUri       = $"{ServiceAddress}api/EmployeeBudgetCode/GetAllForEmployee/";
            CreateEmployeeBudgetCodeUri      = $"{ServiceAddress}api/EmployeeBudgetCode/Create/";
            UpdateEmployeeBudgetCodeUri      = $"{ServiceAddress}api/EmployeeBudgetCode/Update/";
            ActiveBudgetCodesForEmployeesUri = $"{ServiceAddress}api/EmployeeBudgetCode/GetActiveEmployeesInBudgetCode/";

            //Request

            RequestWithVendorBaseUri = $"{ServiceAddress}api/Request/Get/";
            GetItemUri = $"{ServiceAddress}api/Item/Get/";

            //Order
            GetNewOrderUri           = $"{ServiceAddress}api/Order/GetNewOrder/";
            GetCategoriesUri         = $"{ServiceAddress}api/Category/Get/";
            GetOrderByTypeUriBase    = $"{ServiceAddress}api/Order/Get";
            GetDeniedBySupervisorUri = $"{ServiceAddress}api/Order/GetDeniedBySupervisor/";
            GetOrderUri        = $"{ServiceAddress}api/Order/Get/";
            GetOrdersUri       = $"{ServiceAddress}api/Order/GetAll/";
            IncrementStatusUri = $"{ServiceAddress}api/Order/MoveOrderLifeCycleUp/";
            CFOStatusUri       = $"{ServiceAddress}api/Order/MoveToCFOStatus/";
            DenyOrderUri       = $"{ServiceAddress}api/Order/DenyOrder/";


            GetPendingUri  = $"{ServiceAddress}api/Order/GetPending/";
            CancelOrderUri = $"{ServiceAddress}api/Order/CancellOrder/";

            //Supervisor
            GetSubmittedUri     = $"{ServiceAddress}api/Order/GetWaitingSupervisor/";
            GetWaitingForCFOUri = $"{ServiceAddress}api/Order/GetWaitingCFO/";

            //Roles
            GetSupervisorsBaseUri = $"{ServiceAddress}api/Role/GetSupervisors";
            GetRolesBaseUri       = $"{ServiceAddress}api/Role/Get";

            //Approval
            GetApprovalBaseUri = $"{ServiceAddress}api/Approval/Get/";

            //Attachment

            GetAttachmentsBaseUri  = $"{ServiceAddress}api/Attachment/";
            GetAttachmentsUri      = $"{GetAttachmentsBaseUri}GetAll/";
            AddAttachmentsUri      = $"{GetAttachmentsBaseUri}Create/";
            DownloadAttachmentsUri = $"{GetAttachmentsBaseUri}Get/";
            DeleteAttachmentUri    = $"{GetAttachmentsBaseUri}Delete/";
        }