Changeset 75 for trunk/src/main/java/omq/common
- Timestamp:
- 07/02/13 11:50:11 (11 years ago)
- Location:
- trunk/src/main/java/omq/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/common/message/Request.java
r58 r75 23 23 } 24 24 25 public Request(String id, String method, Object[] params) { 26 this.id = id; 27 this.method = method; 28 this.params = params; 29 } 30 31 private Request(String id, String method, boolean async, Object[] params) { 25 public Request(String id, String method, boolean async, Object[] params) { 32 26 this.id = id; 33 27 this.method = method; … … 36 30 } 37 31 38 p rivateRequest(String id, String method, boolean async, Object[] params, boolean multi) {32 public Request(String id, String method, boolean async, Object[] params, boolean multi) { 39 33 this.id = id; 40 34 this.method = method; -
trunk/src/main/java/omq/common/util/Serializers/GsonImp.java
r72 r75 33 33 String id = jsonObj.get("id").getAsString(); 34 34 String method = jsonObj.get("method").getAsString(); 35 boolean async = jsonObj.get("async").getAsBoolean(); 35 36 36 37 List<Class<?>> types = obj.getParams(method); … … 48 49 i++; 49 50 } 50 51 return new Request(id, method, arguments); 51 return new Request(id, method, async, arguments); 52 52 } catch (NullPointerException e) { 53 return new Request(id, method, null);53 return new Request(id, method, async, null); 54 54 } 55 55 }
Note: See TracChangeset
for help on using the changeset viewer.