HIT class

The HIT data structure represents a single HIT, including all the information necessary for a Worker to accept and complete the HIT.

Annotations
  • @JsonSerializable(includeIfNull: false, explicitToJson: true, createFactory: true, createToJson: false)

Constructors

HIT({int assignmentDurationInSeconds, int autoApprovalDelayInSeconds, DateTime creationTime, String description, DateTime expiration, String hITGroupId, String hITId, String hITLayoutId, HITReviewStatus hITReviewStatus, HITStatus hITStatus, String hITTypeId, String keywords, int maxAssignments, int numberOfAssignmentsAvailable, int numberOfAssignmentsCompleted, int numberOfAssignmentsPending, List<QualificationRequirement> qualificationRequirements, String question, String requesterAnnotation, String reward, String title})
HIT.fromJson(Map<String, dynamic> json)
factory

Properties

assignmentDurationInSeconds int
The length of time, in seconds, that a Worker has to complete the HIT after accepting it.
@JsonKey(name: 'AssignmentDurationInSeconds'), final
autoApprovalDelayInSeconds int
The amount of time, in seconds, after the Worker submits an assignment for the HIT that the results are automatically approved by Amazon Mechanical Turk. This is the amount of time the Requester has to reject an assignment submitted by a Worker before the assignment is auto-approved and the Worker is paid.
@JsonKey(name: 'AutoApprovalDelayInSeconds'), final
creationTime DateTime
The date and time the HIT was created.
@UnixDateTimeConverter(), @JsonKey(name: 'CreationTime'), final
description String
A general description of the HIT.
@JsonKey(name: 'Description'), final
expiration DateTime
The date and time the HIT expires.
@UnixDateTimeConverter(), @JsonKey(name: 'Expiration'), final
hashCode int
The hash code for this object. [...]
read-only, inherited
hITGroupId String
The ID of the HIT Group of this HIT.
@JsonKey(name: 'HITGroupId'), final
hITId String
A unique identifier for the HIT.
@JsonKey(name: 'HITId'), final
hITLayoutId String
The ID of the HIT Layout of this HIT.
@JsonKey(name: 'HITLayoutId'), final
hITReviewStatus HITReviewStatus
Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.
@JsonKey(name: 'HITReviewStatus'), final
hITStatus HITStatus
The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.
@JsonKey(name: 'HITStatus'), final
hITTypeId String
The ID of the HIT type of this HIT
@JsonKey(name: 'HITTypeId'), final
keywords String
One or more words or phrases that describe the HIT, separated by commas. Search terms similar to the keywords of a HIT are more likely to have the HIT in the search results.
@JsonKey(name: 'Keywords'), final
maxAssignments int
The number of times the HIT can be accepted and completed before the HIT becomes unavailable.
@JsonKey(name: 'MaxAssignments'), final
numberOfAssignmentsAvailable int
The number of assignments for this HIT that are available for Workers to accept.
@JsonKey(name: 'NumberOfAssignmentsAvailable'), final
numberOfAssignmentsCompleted int
The number of assignments for this HIT that have been approved or rejected.
@JsonKey(name: 'NumberOfAssignmentsCompleted'), final
numberOfAssignmentsPending int
The number of assignments for this HIT that are being previewed or have been accepted by Workers, but have not yet been submitted, returned, or abandoned.
@JsonKey(name: 'NumberOfAssignmentsPending'), final
qualificationRequirements List<QualificationRequirement>
Conditions that a Worker's Qualifications must meet in order to accept the HIT. A HIT can have between zero and ten Qualification requirements. All requirements must be met in order for a Worker to accept the HIT. Additionally, other actions can be restricted using the ActionsGuarded field on each QualificationRequirement structure.
@JsonKey(name: 'QualificationRequirements'), final
question String
The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure.
@JsonKey(name: 'Question'), final
requesterAnnotation String
An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT.
@JsonKey(name: 'RequesterAnnotation'), final
reward String
@JsonKey(name: 'Reward'), final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
title String
The title of the HIT.
@JsonKey(name: 'Title'), final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited