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/"; }
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/"; }
public PlanesController(IHttpHandler httpHandler, IWebServiceLocator webServiceLocator) { _HttpHandler = httpHandler; _WebServiceLocator = webServiceLocator; }
public AttachmentController(IWebApiCalls webApiCalls, IWebServiceLocator settings) { _webApiCalls = webApiCalls; Settings = settings; }
public WebApiCalls(IWebServiceLocator settings) : base(settings) { }
public AirportsController(IHttpHandler httpHandler, IWebServiceLocator webServiceLocator) : base(httpHandler, webServiceLocator) { }
public WebApiCallsBase(IWebServiceLocator settings) { ServiceAddress = settings.ServiceAddress; CustomerBaseUri = $"{ServiceAddress}api/customer/"; DeliveryBaseUri = $"{ServiceAddress}api/delivery/"; }
//Inyeccion public WebApiCalls(IWebServiceLocator ContosoCoreService) : base(ContosoCoreService) { }
protected WebApiCallsBase(IWebServiceLocator ContosoService) { ServiceAddress = ContosoService.ServiceAddress; StudentBaseUri = $"{ServiceAddress}api/Student"; }
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/"; }