package com.google.job.data;

import com.google.cloud.firestore.WriteResult;

import java.util.concurrent.Future;

/**
 * A Result Type class, specific for "addJob" function, that stores both job id and future.
 * Returns job id so that it can be tracked and returns future so that it can be synchronized.
 */
public class AddJobResult {
    private String jobId;
    private Future<WriteResult> future;

    public AddJobResult(String jobId, Future<WriteResult> future) {
        this.jobId = jobId;
        this.future = future;
    }

    public String getJobId() {
        return jobId;
    }

    public Future<WriteResult> getFuture() {
        return future;
    }
}

@@ -539,63 +539,235 @@
     
-public String getJobId() %7B%0A        return jobId;%0A    %7D%0A
+/** Returns the auto generated cloud firestore job id so that this entity can be tracked */%0A    public String getJobId() %7B%0A        return jobId;%0A    %7D%0A%0A    /** Returns future of update details so that it can be synchronized. */
 %0A   

Add javadoc