/// <summary> /// The GetHITsForQualificationType operation returns the HITs that use the given Qualification /// type for a Qualification requirement. /// </summary> /// <param name="request">Type of the get HITs for qualification.</param> /// <returns> /// A <see cref="GetHITsForQualificationTypeResult"/> instance /// </returns> /// <remarks> The operation returns HITs of any status, except for HITs that have been disposed /// with the DisposeHIT operation. /// <para></para>Only HITs that you created will be returned by the query. </remarks> public GetHITsForQualificationTypeResult GetHITsForQualificationType(GetHITsForQualificationTypeRequest request) { GetHITsForQualificationTypeResponse response = (GetHITsForQualificationTypeResponse)(this.SendRequest(request)); return response.GetHITsForQualificationTypeResult[0]; }
/// <summary> /// See <a href="http://docs.amazonwebservices.com/AWSMechTurk/2012-03-25/AWSMturkAPI/ApiReference_GetHITsForQualificationTypeOperation.html">online documentation for this operation.</a> /// </summary> /// <param name="qualificationTypeId">The qualification type id.</param> /// <param name="pageNumber">The page number.</param> /// <param name="pageSize">Size of the page.</param> /// <returns>A <see cref="GetHITsForQualificationTypeResult"/> instance</returns> public GetHITsForQualificationTypeResult GetHITsForQualificationType(string qualificationTypeId, int? pageNumber, int? pageSize) { GetHITsForQualificationTypeRequest request = new GetHITsForQualificationTypeRequest(); request.QualificationTypeId = qualificationTypeId; if (pageNumber.HasValue) { request.PageNumber = pageNumber.Value; request.PageNumberSpecified = true; } if (pageSize.HasValue) { request.PageSize = pageSize.Value; request.PageSizeSpecified = true; } return Proxy.GetHITsForQualificationType(request); }