コード例 #1
0
        /// <summary>
        ///  Provide worker details for inclusion into the Allocate ecosystem. The platform will accept the worker information, and respond either synchronously or asynchronously with the allocate worker identifier. This may entail an on-boarding process, so the final response may require human interaction before it can be completed.
        /// </summary>
        /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="person">Worker information</param>
        /// <returns>Task of WorkerRegistrationResponse</returns>
        public async System.Threading.Tasks.Task <WorkerRegistrationResponse> RegisterWorkerAsync(Person person)
        {
            ASW.APIServices.Core.Client.ApiResponse <WorkerRegistrationResponse> localVarResponse = await RegisterWorkerAsyncWithHttpInfo(person);

            return(localVarResponse.Data);
        }
コード例 #2
0
        /// <summary>
        ///  Create a new Duty
        /// </summary>
        /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="dutyDetails">Duty to be sent to agency</param>
        /// <returns>Task of string</returns>
        public async System.Threading.Tasks.Task <string> CreateDutyAsync(DutyDetails dutyDetails)
        {
            ASW.APIServices.Core.Client.ApiResponse <string> localVarResponse = await CreateDutyAsyncWithHttpInfo(dutyDetails);

            return(localVarResponse.Data);
        }
コード例 #3
0
 /// <summary>
 ///  Provide worker details for inclusion into the Allocate ecosystem. The platform will accept the worker information, and respond either synchronously or asynchronously with the allocate worker identifier. This may entail an on-boarding process, so the final response may require human interaction before it can be completed.
 /// </summary>
 /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="person">Worker information</param>
 /// <returns>WorkerRegistrationResponse</returns>
 public WorkerRegistrationResponse RegisterWorker(Person person)
 {
     ASW.APIServices.Core.Client.ApiResponse <WorkerRegistrationResponse> localVarResponse = RegisterWorkerWithHttpInfo(person);
     return(localVarResponse.Data);
 }
コード例 #4
0
        /// <summary>
        ///  Provide hours and assignment details for workers
        /// </summary>
        /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="customerCode">The code for the customer (trust) for which the activities should be returned</param>
        /// <param name="format">Format for the output. TBD, but may be used to control the scope of information returned. (optional)</param>
        /// <returns>Task of List&lt;HoursAssignment&gt;</returns>
        public async System.Threading.Tasks.Task <List <HoursAssignment> > GetActivitiesAsync(string customerCode, string format = default(string))
        {
            ASW.APIServices.Core.Client.ApiResponse <List <HoursAssignment> > localVarResponse = await GetActivitiesAsyncWithHttpInfo(customerCode, format);

            return(localVarResponse.Data);
        }
コード例 #5
0
 /// <summary>
 ///  Create a new Duty
 /// </summary>
 /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="dutyDetails">Duty to be sent to agency</param>
 /// <returns>string</returns>
 public string CreateDuty(DutyDetails dutyDetails)
 {
     ASW.APIServices.Core.Client.ApiResponse <string> localVarResponse = CreateDutyWithHttpInfo(dutyDetails);
     return(localVarResponse.Data);
 }
コード例 #6
0
        /// <summary>
        ///
        /// </summary>
        /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="id">The ID of the proposal</param>
        /// <returns>Task of ProposalDetails</returns>
        public async System.Threading.Tasks.Task <ProposalDetails> GetProposalAsync(string id)
        {
            ASW.APIServices.Core.Client.ApiResponse <ProposalDetails> localVarResponse = await GetProposalAsyncWithHttpInfo(id);

            return(localVarResponse.Data);
        }
コード例 #7
0
 /// <summary>
 ///  Provide hours and assignment details for workers
 /// </summary>
 /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="customerCode">The code for the customer (trust) for which the activities should be returned</param>
 /// <param name="format">Format for the output. TBD, but may be used to control the scope of information returned. (optional)</param>
 /// <returns>List&lt;HoursAssignment&gt;</returns>
 public List <HoursAssignment> GetActivities(string customerCode, string format = default(string))
 {
     ASW.APIServices.Core.Client.ApiResponse <List <HoursAssignment> > localVarResponse = GetActivitiesWithHttpInfo(customerCode, format);
     return(localVarResponse.Data);
 }
コード例 #8
0
        /// <summary>
        ///  Offer a worker for filling a duty
        /// </summary>
        /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="vacancyId">The ID of the vacancy</param>
        /// <param name="proposalDetails">Details of the proposal for filling the vacancy (worker, costs, etc)</param>
        /// <returns>Task of CreateProposalResponse</returns>
        public async System.Threading.Tasks.Task <CreateProposalResponse> CreateProposalAsync(string vacancyId, ProposalDetails proposalDetails)
        {
            ASW.APIServices.Core.Client.ApiResponse <CreateProposalResponse> localVarResponse = await CreateProposalAsyncWithHttpInfo(vacancyId, proposalDetails);

            return(localVarResponse.Data);
        }
コード例 #9
0
 /// <summary>
 ///  Create a new vacancy
 /// </summary>
 /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="vacancy">Details of the vacancy</param>
 /// <returns>CreateVacancyResponse</returns>
 public CreateVacancyResponse CreateVacancy(Vacancy vacancy)
 {
     ASW.APIServices.Core.Client.ApiResponse <CreateVacancyResponse> localVarResponse = CreateVacancyWithHttpInfo(vacancy);
     return(localVarResponse.Data);
 }
コード例 #10
0
        /// <summary>
        ///  Retrieve worker details from the Allocate ecosystem using the Allocate Worker id. The Allocate Worker id will be issued when registering a worker.
        /// </summary>
        /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="id">The ID of the worker</param>
        /// <returns>Task of Person</returns>
        public async System.Threading.Tasks.Task <Person> GetWorkerAsync(string id)
        {
            ASW.APIServices.Core.Client.ApiResponse <Person> localVarResponse = await GetWorkerAsyncWithHttpInfo(id);

            return(localVarResponse.Data);
        }
コード例 #11
0
 /// <summary>
 ///  Offer a worker for filling a duty
 /// </summary>
 /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="vacancyId">The ID of the vacancy</param>
 /// <param name="proposalDetails">Details of the proposal for filling the vacancy (worker, costs, etc)</param>
 /// <returns>CreateProposalResponse</returns>
 public CreateProposalResponse CreateProposal(string vacancyId, ProposalDetails proposalDetails)
 {
     ASW.APIServices.Core.Client.ApiResponse <CreateProposalResponse> localVarResponse = CreateProposalWithHttpInfo(vacancyId, proposalDetails);
     return(localVarResponse.Data);
 }
コード例 #12
0
 /// <summary>
 ///  Retrieve worker details from the Allocate ecosystem using the Allocate Worker id. The Allocate Worker id will be issued when registering a worker.
 /// </summary>
 /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">The ID of the worker</param>
 /// <returns>Person</returns>
 public Person GetWorker(string id)
 {
     ASW.APIServices.Core.Client.ApiResponse <Person> localVarResponse = GetWorkerWithHttpInfo(id);
     return(localVarResponse.Data);
 }
コード例 #13
0
        /// <summary>
        /// Get all events older than input timestamp Returns an array of events
        /// </summary>
        /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="version">API version</param>
        /// <param name="trustCode">Trust code from BankStaff</param>
        /// <param name="dateTimeFrom">Timestamp</param>
        /// <param name="page">Result page (optional)</param>
        /// <param name="pageSize">Count of records per page (optional)</param>
        /// <returns>Task of Duty</returns>
        public async System.Threading.Tasks.Task <Duty> GetEventsAsync(string version, string trustCode, DateTime dateTimeFrom, int?page = default(int?), int?pageSize = default(int?))
        {
            ASW.APIServices.Core.Client.ApiResponse <Duty> localVarResponse = await GetEventsAsyncWithHttpInfo(version, trustCode, dateTimeFrom, page, pageSize);

            return(localVarResponse.Data);
        }
コード例 #14
0
 /// <summary>
 /// Get all events older than input timestamp Returns an array of events
 /// </summary>
 /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="version">API version</param>
 /// <param name="trustCode">Trust code from BankStaff</param>
 /// <param name="dateTimeFrom">Timestamp</param>
 /// <param name="page">Result page (optional)</param>
 /// <param name="pageSize">Count of records per page (optional)</param>
 /// <returns>Duty</returns>
 public Duty GetEvents(string version, string trustCode, DateTime dateTimeFrom, int?page = default(int?), int?pageSize = default(int?))
 {
     ASW.APIServices.Core.Client.ApiResponse <Duty> localVarResponse = GetEventsWithHttpInfo(version, trustCode, dateTimeFrom, page, pageSize);
     return(localVarResponse.Data);
 }
コード例 #15
0
 /// <summary>
 ///  Submit an leave (vacation) claim for a worker
 /// </summary>
 /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">ID of the worker</param>
 /// <param name="leaveClaim">Leave claim for a worker</param>
 /// <returns>AsyncResponse</returns>
 public AsyncResponse SubmitAnnualLeaveClaim(string id, LeaveClaim leaveClaim)
 {
     ASW.APIServices.Core.Client.ApiResponse <AsyncResponse> localVarResponse = SubmitAnnualLeaveClaimWithHttpInfo(id, leaveClaim);
     return(localVarResponse.Data);
 }
コード例 #16
0
        /// <summary>
        ///  Create a new vacancy
        /// </summary>
        /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="vacancy">Details of the vacancy</param>
        /// <returns>Task of CreateVacancyResponse</returns>
        public async System.Threading.Tasks.Task <CreateVacancyResponse> CreateVacancyAsync(Vacancy vacancy)
        {
            ASW.APIServices.Core.Client.ApiResponse <CreateVacancyResponse> localVarResponse = await CreateVacancyAsyncWithHttpInfo(vacancy);

            return(localVarResponse.Data);
        }
コード例 #17
0
        /// <summary>
        ///  Submit an leave (vacation) claim for a worker
        /// </summary>
        /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="id">ID of the worker</param>
        /// <param name="leaveClaim">Leave claim for a worker</param>
        /// <returns>Task of AsyncResponse</returns>
        public async System.Threading.Tasks.Task <AsyncResponse> SubmitAnnualLeaveClaimAsync(string id, LeaveClaim leaveClaim)
        {
            ASW.APIServices.Core.Client.ApiResponse <AsyncResponse> localVarResponse = await SubmitAnnualLeaveClaimAsyncWithHttpInfo(id, leaveClaim);

            return(localVarResponse.Data);
        }
コード例 #18
0
 /// <summary>
 ///
 /// </summary>
 /// <exception cref="ASW.APIServices.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">The ID of the proposal</param>
 /// <returns>ProposalDetails</returns>
 public ProposalDetails GetProposal(string id)
 {
     ASW.APIServices.Core.Client.ApiResponse <ProposalDetails> localVarResponse = GetProposalWithHttpInfo(id);
     return(localVarResponse.Data);
 }