Added gson-2.3 jar to project and ant build.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package uk.ac.ic.wlgitbridge.writelatex;
|
||||
|
||||
import com.google.gson.JsonElement;
|
||||
|
||||
/**
|
||||
* Created by Winston on 06/11/14.
|
||||
*/
|
||||
public interface JSONSource {
|
||||
|
||||
public void updateFromJSON(JsonElement json);
|
||||
|
||||
}
|
||||
@@ -1,7 +1,21 @@
|
||||
package uk.ac.ic.wlgitbridge.writelatex;
|
||||
|
||||
import com.google.gson.JsonElement;
|
||||
|
||||
/**
|
||||
* Created by Winston on 03/11/14.
|
||||
*/
|
||||
public class Snapshot {
|
||||
public class Snapshot implements JSONSource {
|
||||
|
||||
private int version;
|
||||
|
||||
public Snapshot() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateFromJSON(JsonElement json) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+14
-1
@@ -3,17 +3,30 @@ package uk.ac.ic.wlgitbridge.writelatex.api;
|
||||
import org.eclipse.jgit.lib.Repository;
|
||||
import uk.ac.ic.wlgitbridge.writelatex.Snapshot;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Created by Winston on 03/11/14.
|
||||
*/
|
||||
public class DummySnapshotDBAPI implements SnapshotDBAPI {
|
||||
|
||||
private Map<String, Map<String, Integer>> projects;
|
||||
|
||||
public DummySnapshotDBAPI() {
|
||||
projects = new HashMap<String, Map<String, Integer>>();
|
||||
|
||||
}
|
||||
|
||||
private void initTestData() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repositoryExists(String name) {
|
||||
return true;
|
||||
return projects.containsKey(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user