package edu.ipd.kit.crowdcontrol.proto.crowdplatform;

import edu.ipd.kit.crowdcontrol.proto.databasemodel.tables.records.ExperimentRecord;

import java.util.List;

/**
 * Created by marcel on 20.11.15.
 */
//public HIT createHIT(String hitTypeId, String title, String description, String keywords,
// Double reward,
// Long assignmentDurationInSeconds,
// Long autoApprovalDelayInSeconds,
// Long lifetimeInSeconds,
// Integer maxAssignments,
// String requesterAnnotation,
// QualificationRequirement[] qualificationRequirements,
// String[] responseGroup,
// String uniqueRequestToken,
// ReviewPolicy assignmentReviewPolicy,
// ReviewPolicy hitReviewPolicy,
// String hitLayoutId,
// HITLayoutParameter[] hitLayoutParameters)
public class Hit {
    private String id;
    private String title;
    private String description;
    private List<String> tags;
    private int amount;
    private double payment;
    private long assignmentDuration;
    private long hitDuration;
    private String url;

    public Hit(String id, String title, String description, List<String> tags, int amount, double payment, long assignmentDuration, long hitDuration, String url) {
        this.id = id;
        this.title = title;
        this.description = description;
        this.tags = tags;
        this.amount = amount;
        this.payment = payment;
        this.assignmentDuration = assignmentDuration;
        this.hitDuration = hitDuration;
        this.url = url;
    }

    public String getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getDescription() {
        return description;
    }

    public List<String> getTags() {
        return tags;
    }

    public double getPayment() {
        return payment;
    }

    public int getAmount() {
        return amount;
    }

    public long getAssignmentDuration() {
        return assignmentDuration;
    }

    public long getHitDuration() {
        return hitDuration;
    }

    public String getUrl() {
        return url;
    }
}

@@ -998,16 +998,563 @@
 g url;%0A%0A
+    /**%0A     *%0A     * @param id id of the HIT%0A     * @param title Title%0A     * @param description Description which should declare the task before the worker accepts the HIT%0A     * @param tags The tags where the HIT should be listet at%0A     * @param amount number how often the hit can be accepted%0A     * @param payment the payment per hit%0A     * @param assignmentDuration the duration a worker has to complete a assignment%0A     * @param hitDuration the duration a hit is running%0A     * @param url the url to open when the hit is accepted%0A     */%0A
     publ

update hit doc