Esempio n. 1
0
 /// <summary>
 /// Get a specific Job Role from Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">Unique ID of the Job Role</param>
 /// <returns>JobRole</returns>
 public JobRole GetJobRole(Guid id)
 {
     Workforce.Client.ApiResponse <JobRole> localVarResponse = GetJobRoleWithHttpInfo(id);
     return(localVarResponse.Data);
 }
Esempio n. 2
0
        /// <summary>
        /// Get a specific Location from Workforce
        /// </summary>
        /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="id">Unique ID of the Location</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of Location</returns>
        public async System.Threading.Tasks.Task <Location> GetLocationAsync(Guid id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Workforce.Client.ApiResponse <Location> localVarResponse = await GetLocationWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Esempio n. 3
0
 /// <summary>
 /// Get all Locations within Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;Location&gt;</returns>
 public List <Location> GetLocations()
 {
     Workforce.Client.ApiResponse <List <Location> > localVarResponse = GetLocationsWithHttpInfo();
     return(localVarResponse.Data);
 }
 /// <summary>
 /// Get all Notice Periods within Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;NoticePeriod&gt;</returns>
 public List <NoticePeriod> GetNoticePeriods()
 {
     Workforce.Client.ApiResponse <List <NoticePeriod> > localVarResponse = GetNoticePeriodsWithHttpInfo();
     return(localVarResponse.Data);
 }
Esempio n. 5
0
 /// <summary>
 /// Get a specific Location from Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">Unique ID of the Location</param>
 /// <returns>Location</returns>
 public Location GetLocation(Guid id)
 {
     Workforce.Client.ApiResponse <Location> localVarResponse = GetLocationWithHttpInfo(id);
     return(localVarResponse.Data);
 }
Esempio n. 6
0
 /// <summary>
 /// Get a specific Country from Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">Unique ID of the Country</param>
 /// <returns>Country</returns>
 public Country GetCountry(Guid id)
 {
     Workforce.Client.ApiResponse <Country> localVarResponse = GetCountryWithHttpInfo(id);
     return(localVarResponse.Data);
 }
 /// <summary>
 /// Get a specific Notice Period from Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">Unique ID of the Notice Period</param>
 /// <returns>NoticePeriod</returns>
 public NoticePeriod GetNoticePeriod(Guid id)
 {
     Workforce.Client.ApiResponse <NoticePeriod> localVarResponse = GetNoticePeriodWithHttpInfo(id);
     return(localVarResponse.Data);
 }
Esempio n. 8
0
 /// <summary>
 /// Get a specific Nationality from Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">Unique ID of the Nationality</param>
 /// <returns>Nationality</returns>
 public Nationality GetNationality(Guid id)
 {
     Workforce.Client.ApiResponse <Nationality> localVarResponse = GetNationalityWithHttpInfo(id);
     return(localVarResponse.Data);
 }
 /// <summary>
 /// Get a specific Department from Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">Unique ID of the Department</param>
 /// <returns>Department</returns>
 public Department GetDepartment(Guid id)
 {
     Workforce.Client.ApiResponse <Department> localVarResponse = GetDepartmentWithHttpInfo(id);
     return(localVarResponse.Data);
 }
 /// <summary>
 /// Get all Employment Types within Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;EmploymentType&gt;</returns>
 public List <EmploymentType> GetEmploymentTypes()
 {
     Workforce.Client.ApiResponse <List <EmploymentType> > localVarResponse = GetEmploymentTypesWithHttpInfo();
     return(localVarResponse.Data);
 }
Esempio n. 11
0
 /// <summary>
 /// Get all Nationalities within Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;Nationality&gt;</returns>
 public List <Nationality> GetNationalities()
 {
     Workforce.Client.ApiResponse <List <Nationality> > localVarResponse = GetNationalitiesWithHttpInfo();
     return(localVarResponse.Data);
 }
 /// <summary>
 /// Get a specific Employment Type from Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">Unique ID of the Employment Type</param>
 /// <returns>EmploymentType</returns>
 public EmploymentType GetEmploymentType(Guid id)
 {
     Workforce.Client.ApiResponse <EmploymentType> localVarResponse = GetEmploymentTypeWithHttpInfo(id);
     return(localVarResponse.Data);
 }
 /// <summary>
 /// Get all Branches within Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;Branch&gt;</returns>
 public List <Branch> GetBranches()
 {
     Workforce.Client.ApiResponse <List <Branch> > localVarResponse = GetBranchesWithHttpInfo();
     return(localVarResponse.Data);
 }
 /// <summary>
 /// Get a specific Branch from Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">Unique ID of the Branch</param>
 /// <returns>Branch</returns>
 public Branch GetBranch(Guid id)
 {
     Workforce.Client.ApiResponse <Branch> localVarResponse = GetBranchWithHttpInfo(id);
     return(localVarResponse.Data);
 }
Esempio n. 15
0
 /// <summary>
 /// Get all Job Roles within Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;JobRole&gt;</returns>
 public List <JobRole> GetJobRoles()
 {
     Workforce.Client.ApiResponse <List <JobRole> > localVarResponse = GetJobRolesWithHttpInfo();
     return(localVarResponse.Data);
 }
 /// <summary>
 /// Get all Departments within Workforce
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;Department&gt;</returns>
 public List <Department> GetDepartments()
 {
     Workforce.Client.ApiResponse <List <Department> > localVarResponse = GetDepartmentsWithHttpInfo();
     return(localVarResponse.Data);
 }
Esempio n. 17
0
        /// <summary>
        /// Get all Job Roles within Workforce
        /// </summary>
        /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of List&lt;JobRole&gt;</returns>
        public async System.Threading.Tasks.Task <List <JobRole> > GetJobRolesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Workforce.Client.ApiResponse <List <JobRole> > localVarResponse = await GetJobRolesWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Esempio n. 18
0
 /// <summary>
 /// Get all Countries within Workforce and the assoicated regions
 /// </summary>
 /// <exception cref="Workforce.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;Country&gt;</returns>
 public List <Country> GetCountriesWithRegions()
 {
     Workforce.Client.ApiResponse <List <Country> > localVarResponse = GetCountriesWithRegionsWithHttpInfo();
     return(localVarResponse.Data);
 }