Back to project page StudySpaces.
The source code is released under:
Apache License
If you think the Android project StudySpaces listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.pennstudyspaces.api; // www. ja v a 2 s . c o m public class DataDumpRequest implements ApiRequest { private static final String DUMP = "showall", FORMAT = "format"; private String format; public DataDumpRequest() { this("json"); } public DataDumpRequest(String format) { if (!"json".equals(format)) throw new IllegalArgumentException("unsupported format"); this.format = format; } @Override public String toString() { return DUMP + "=1&" + FORMAT + "=" + this.format; } @Override public String createRequest() { return API_URL + this.toString(); } }