Skip to content

Commit

Permalink
Convience add to RpcMessageCall
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpullano committed Apr 8, 2012
1 parent d8317ff commit 97cc424
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rpc/message/RpcMessageCall.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ private static RpcMessageReply send(Collection<IPP> ippList, int opCode, ArrayLi
return client.getReply();
}

public static ReadResult SessionRead(ArrayList<IPP> ippList, SID sid, int changeCount) {
public static ReadResult SessionRead(IPP ipp, SID sid, int changeCount) {
ArrayList<IPP> ippList = new ArrayList<IPP>();
ippList.add(ipp);
return SessionRead(ippList, sid, changeCount);
}

public static ReadResult SessionRead(Collection<IPP> ippList, SID sid, int changeCount) {
ArrayList<Object> arguments = new ArrayList<Object>();
arguments.add(sid);
arguments.add(changeCount);
Expand Down

0 comments on commit 97cc424

Please sign in to comment.