package edu.iastate.cs.design.spec.stackexchange.request;

public class QuestionAnswersRequestData implements IStackExchangeRequestData {

    public final String ACTIVITY_SORT = "activity";
    public final String CREATION_DATE_SORT = "creation";
    public final String VOTES_SORT = "votes";

    private String sort;
    // The api actually accepts a list of ids, but we will just use one.
    private int id;

    public QuestionAnswersRequestData(String sort, int id) {
        this.sort = sort;
        this.id = id;
    }

    public String getSort() {
        return sort;
    }

    public int getId() {
        return id;
    }

    public String requestUrl() {
        StringBuilder requestBuilder = new StringBuilder();
        requestBuilder.append("https://api.stackexchange.com/2.2/questions/");
        requestBuilder.append(id);
        requestBuilder.append("/answers?order=desc&sort=");
        requestBuilder.append(sort);
        requestBuilder.append("&site=stackoverflow");
        requestBuilder.append("&key=KW1Do4aYqEdlMNsHpPEHdg((");
        return requestBuilder.toString();
    }
}

@@ -135,32 +135,39 @@
 a %7B%0A%0A    public 
+static 
 final String ACT
@@ -194,32 +194,39 @@
 ty%22;%0A    public 
+static 
 final String CRE
@@ -266,16 +266,23 @@
  public 
+static 
 final St

Make sort option fields static