Assignment class

The Assignment data structure represents a single assignment of a HIT to a Worker. The assignment tracks the Worker's efforts to complete the HIT, and contains the results for later retrieval.

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

Constructors

Assignment({DateTime acceptTime, String answer, DateTime approvalTime, String assignmentId, AssignmentStatus assignmentStatus, DateTime autoApprovalTime, DateTime deadline, String hITId, DateTime rejectionTime, String requesterFeedback, DateTime submitTime, String workerId})
Assignment.fromJson(Map<String, dynamic> json)
factory

Properties

acceptTime DateTime
The date and time the Worker accepted the assignment.
@UnixDateTimeConverter(), @JsonKey(name: 'AcceptTime'), final
answer String
The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an answer. If the Worker does not provide any answers, Answer may contain a QuestionFormAnswers document, or Answer may be empty.
@JsonKey(name: 'Answer'), final
approvalTime DateTime
If the Worker has submitted results and the Requester has approved the results, ApprovalTime is the date and time the Requester approved the results. This value is omitted from the assignment if the Requester has not yet approved the results.
@UnixDateTimeConverter(), @JsonKey(name: 'ApprovalTime'), final
assignmentId String
A unique identifier for the assignment.
@JsonKey(name: 'AssignmentId'), final
assignmentStatus AssignmentStatus
The status of the assignment.
@JsonKey(name: 'AssignmentStatus'), final
autoApprovalTime DateTime
If results have been submitted, AutoApprovalTime is the date and time the results of the assignment results are considered Approved automatically if they have not already been explicitly approved or rejected by the Requester. This value is derived from the auto-approval delay specified by the Requester in the HIT. This value is omitted from the assignment if the Worker has not yet submitted results.
@UnixDateTimeConverter(), @JsonKey(name: 'AutoApprovalTime'), final
deadline DateTime
The date and time of the deadline for the assignment. This value is derived from the deadline specification for the HIT and the date and time the Worker accepted the HIT.
@UnixDateTimeConverter(), @JsonKey(name: 'Deadline'), final
hashCode int
The hash code for this object. [...]
read-only, inherited
hITId String
The ID of the HIT.
@JsonKey(name: 'HITId'), final
rejectionTime DateTime
If the Worker has submitted results and the Requester has rejected the results, RejectionTime is the date and time the Requester rejected the results.
@UnixDateTimeConverter(), @JsonKey(name: 'RejectionTime'), final
requesterFeedback String
The feedback string included with the call to the ApproveAssignment operation or the RejectAssignment operation, if the Requester approved or rejected the assignment and specified feedback.
@JsonKey(name: 'RequesterFeedback'), final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
submitTime DateTime
If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted. This value is omitted from the assignment if the Worker has not yet submitted results.
@UnixDateTimeConverter(), @JsonKey(name: 'SubmitTime'), final
workerId String
The ID of the Worker who accepted the HIT.
@JsonKey(name: 'WorkerId'), 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