/// <summary> /// The SetHITTypeNotification operation creates, updates, disables or re-enables /// notifications for a HIT type. /// </summary> /// <param name="request">A <see cref="SetHITTypeNotificationRequest"/> instance containing /// the request parameters</param> /// <remarks> When a HIT type has an active notification, Mechanical Turk will attempt to /// send a notification message when a HIT of the type changes state, such as when an assignment /// is submitted for the HIT. The state changes to watch and the method of notification are described /// in the notification specification given to SetHITTypeNotification.</remarks> public void SetHITTypeNotification(SetHITTypeNotificationRequest request) { this.SendRequest(request); }
/// <summary> /// See <a href="http://docs.amazonwebservices.com/AWSMechTurk/2012-03-25/AWSMturkAPI/ApiReference_SetHITTypeNotificationOperation.html">online documentation for this operation.</a> /// </summary> /// <param name="hitTypeId">The hit type id.</param> /// <param name="notification">The notification.</param> /// <param name="active">The active.</param> public void SetHITTypeNotification(string hitTypeId, NotificationSpecification notification, bool? active) { SetHITTypeNotificationRequest req = new SetHITTypeNotificationRequest(); req.HITTypeId = hitTypeId; req.Notification = notification; if (active.HasValue) { req.Active = active.Value; req.ActiveSpecified = true; } Proxy.SetHITTypeNotification(req); }