Beispiel #1
0
 /// <summary>
 /// The ExtendHIT operation increases the maximum number of assignments, or extends the 
 /// expiration date, of an existing HIT.
 /// </summary>
 /// <param name="request">A <see cref="ExtendHITRequest"/> instance containing the 
 /// request parameters</param>
 /// <remarks> If a HIT is not assignable (with a status of Unassignable or Reviewable) 
 /// due to either having reached its maximum number of assignments or having reached 
 /// its expiration date, extending the HIT can make it available again.</remarks>
 public void ExtendHIT(ExtendHITRequest request)
 {
     this.SendRequest(request);
 }
Beispiel #2
0
        /// <summary>
        /// See <a href="http://docs.amazonwebservices.com/AWSMechTurk/2012-03-25/AWSMturkAPI/ApiReference_ExtendHITOperation.html">online documentation for this operation.</a>
        /// </summary>
        /// <param name="hitId">The hit id.</param>
        /// <param name="maxAssignmentsIncrement">The max assignments increment.</param>
        /// <param name="expirationIncrementInSeconds">The expiration increment in seconds.</param>
        public void ExtendHIT(string hitId, int? maxAssignmentsIncrement, long? expirationIncrementInSeconds)
        {
            ExtendHITRequest request = new ExtendHITRequest();
            request.HITId = hitId;
            if (maxAssignmentsIncrement.HasValue)
            {
                request.MaxAssignmentsIncrement = maxAssignmentsIncrement.Value;
                request.MaxAssignmentsIncrementSpecified = true;
            }

            if (expirationIncrementInSeconds.HasValue)
            {
                request.ExpirationIncrementInSeconds = expirationIncrementInSeconds.Value;
                request.ExpirationIncrementInSecondsSpecified = true;
            }

            Proxy.ExtendHIT(request);
        }