]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document.server/src/org/simantics/document/server/JSONResult.java
Sync git svn branch with SVN repository r33166.
[simantics/platform.git] / bundles / org.simantics.document.server / src / org / simantics / document / server / JSONResult.java
1 package org.simantics.document.server;\r
2 \r
3 import java.util.Collection;\r
4 \r
5 import org.simantics.document.server.io.IJSONObject;\r
6 import org.simantics.document.server.io.IJSONResult;\r
7 \r
8 public class JSONResult implements IJSONResult {\r
9 \r
10     private int sequenceNumber;\r
11     private Collection<IJSONObject> json;\r
12     \r
13     public JSONResult(int sequenceNumber, Collection<IJSONObject> json) {\r
14         this.sequenceNumber = sequenceNumber;\r
15         this.json = json;\r
16     }\r
17 \r
18     @Override\r
19     public int getSequenceNumber() {\r
20         return sequenceNumber;\r
21     }\r
22 \r
23     @Override\r
24     public Collection<IJSONObject> getJSONObject() {\r
25         return json;\r
26     }\r
27 }\r