/// <summary>
        ///  Query a duty booking by id
        /// </summary>
        /// <exception cref="ASW.APIServices.VMS.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="bookingId">ID of the duty booking</param>
        /// <returns>Task of DutyRequest</returns>
        public async System.Threading.Tasks.Task <DutyRequest> GetBookingAsync(string bookingId)
        {
            ASW.APIServices.VMS.Client.ApiResponse <DutyRequest> localVarResponse = await GetBookingAsyncWithHttpInfo(bookingId);

            return(localVarResponse.Data);
        }
        /// <summary>
        ///  Accept an agency offer for a worker.
        /// </summary>
        /// <exception cref="ASW.APIServices.VMS.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="bookingRequestId">ID of the booking request to accept.</param>
        /// <param name="offerId">ID of the offer to accept. Depending on the VMS, this may be a unique ID, an index to locate an agency, or the agency ID itself.</param>
        /// <returns>Task of string</returns>
        public async System.Threading.Tasks.Task <string> AcceptAgencyOfferAsync(string bookingRequestId, string offerId)
        {
            ASW.APIServices.VMS.Client.ApiResponse <string> localVarResponse = await AcceptAgencyOfferAsyncWithHttpInfo(bookingRequestId, offerId);

            return(localVarResponse.Data);
        }
 /// <summary>
 ///  Query a duty booking by id
 /// </summary>
 /// <exception cref="ASW.APIServices.VMS.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="bookingId">ID of the duty booking</param>
 /// <returns>DutyRequest</returns>
 public DutyRequest GetBooking(string bookingId)
 {
     ASW.APIServices.VMS.Client.ApiResponse <DutyRequest> localVarResponse = GetBookingWithHttpInfo(bookingId);
     return(localVarResponse.Data);
 }
Example #4
0
        /// <summary>
        ///  Immediately forward a request for a duty to be filled by a specific agency. If the request also specifies a worker Identity, this will be a direct booking.
        /// </summary>
        /// <exception cref="ASW.APIServices.VMS.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="agencyId">ID of the agency to send the request to.</param>
        /// <param name="dutyRequest">Duty to be sent to agency</param>
        /// <returns>Task of string</returns>
        public async System.Threading.Tasks.Task <string> SendDutyToAgencyAsync(string agencyId, DutyRequest dutyRequest)
        {
            ASW.APIServices.VMS.Client.ApiResponse <string> localVarResponse = await SendDutyToAgencyAsyncWithHttpInfo(agencyId, dutyRequest);

            return(localVarResponse.Data);
        }
 /// <summary>
 ///  Accept an agency offer for a worker.
 /// </summary>
 /// <exception cref="ASW.APIServices.VMS.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="bookingRequestId">ID of the booking request to accept.</param>
 /// <param name="offerId">ID of the offer to accept. Depending on the VMS, this may be a unique ID, an index to locate an agency, or the agency ID itself.</param>
 /// <returns>string</returns>
 public string AcceptAgencyOffer(string bookingRequestId, string offerId)
 {
     ASW.APIServices.VMS.Client.ApiResponse <string> localVarResponse = AcceptAgencyOfferWithHttpInfo(bookingRequestId, offerId);
     return(localVarResponse.Data);
 }
Example #6
0
 /// <summary>
 ///  Immediately forward a request for a duty to be filled by a specific agency. If the request also specifies a worker Identity, this will be a direct booking.
 /// </summary>
 /// <exception cref="ASW.APIServices.VMS.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="agencyId">ID of the agency to send the request to.</param>
 /// <param name="dutyRequest">Duty to be sent to agency</param>
 /// <returns>string</returns>
 public string SendDutyToAgency(string agencyId, DutyRequest dutyRequest)
 {
     ASW.APIServices.VMS.Client.ApiResponse <string> localVarResponse = SendDutyToAgencyWithHttpInfo(agencyId, dutyRequest);
     return(localVarResponse.Data);
 }
Example #7
0
        /// <summary>
        ///  Returns a list of agencies and their costs for the supplied duty.
        /// </summary>
        /// <exception cref="ASW.APIServices.VMS.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="duty">Duty to be costed</param>
        /// <returns>Task of AgencyCostings</returns>
        public async System.Threading.Tasks.Task <AgencyCostings> GetCostingsAsync(Duty duty)
        {
            ASW.APIServices.VMS.Client.ApiResponse <AgencyCostings> localVarResponse = await GetCostingsAsyncWithHttpInfo(duty);

            return(localVarResponse.Data);
        }
Example #8
0
 /// <summary>
 ///  Returns a list of agencies and their costs for the supplied duty.
 /// </summary>
 /// <exception cref="ASW.APIServices.VMS.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="duty">Duty to be costed</param>
 /// <returns>AgencyCostings</returns>
 public AgencyCostings GetCostings(Duty duty)
 {
     ASW.APIServices.VMS.Client.ApiResponse <AgencyCostings> localVarResponse = GetCostingsWithHttpInfo(duty);
     return(localVarResponse.Data);
 }
Example #9
0
        /// <summary>
        ///  Get the details of a person (worker) from the VMS
        /// </summary>
        /// <exception cref="ASW.APIServices.VMS.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="id">ID of the worker within the VMS.</param>
        /// <returns>Task of Person</returns>
        public async System.Threading.Tasks.Task <Person> GetWorkerAsync(string id)
        {
            ASW.APIServices.VMS.Client.ApiResponse <Person> localVarResponse = await GetWorkerAsyncWithHttpInfo(id);

            return(localVarResponse.Data);
        }
Example #10
0
 /// <summary>
 ///  Get the details of a person (worker) from the VMS
 /// </summary>
 /// <exception cref="ASW.APIServices.VMS.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">ID of the worker within the VMS.</param>
 /// <returns>Person</returns>
 public Person GetWorker(string id)
 {
     ASW.APIServices.VMS.Client.ApiResponse <Person> localVarResponse = GetWorkerWithHttpInfo(id);
     return(localVarResponse.Data);
 }