コード例 #1
0
ファイル: MTurkClient.cs プロジェクト: stwehrli/TurkR
 /// <summary>
 /// The RevokeQualification operation revokes a previously granted Qualification from a user. 
 /// If the user had a Qualification of the given Qualification type, after revoking it, the 
 /// user will no longer have the Qualification, and will not qualify for HITs whose 
 /// Qualification requirements say the user must have the Qualification.
 /// </summary>
 /// <param name="request">A <see cref="RevokeQualificationRequest"/> instance containing 
 /// the request parameters</param>
 /// <remarks> Once a Qualification is revoked from a user, the user cannot be granted the 
 /// Qualification until the user requests the Qualification again. Depending on how the 
 /// Qualification type's retry policy is configured, the user may be restricted from 
 /// requesting the Qualification a second time.</remarks>
 public void RevokeQualification(RevokeQualificationRequest request)
 {
     this.SendRequest(request);
 }
コード例 #2
0
ファイル: SimpleClient.cs プロジェクト: RavenB/SemantAPI
        /// <summary>
        /// See <a href="http://docs.amazonwebservices.com/AWSMechTurk/2012-03-25/AWSMturkAPI/ApiReference_RevokeQualificationOperation.html">online documentation for this operation.</a>
        /// </summary>
        /// <param name="qualificationTypeId"></param>
        /// <param name="subjectId"></param>
        /// <param name="reason"></param>
        public void RevokeQualification(string qualificationTypeId, string subjectId, string reason)
        {
            RevokeQualificationRequest request = new RevokeQualificationRequest();
            request.QualificationTypeId = qualificationTypeId;
            request.SubjectId = subjectId;
            request.Reason = reason;

            Proxy.RevokeQualification(request);
        }