Search in sources :

Example 6 with Session

use of org.roof.im.session.Session in project roof-im by madfroglx.

the class JdbcSessionManager method open.

@Override
public Session open(String sender, String receiver, long startTime, long endTime) {
    Session session = new Session();
    session.setSender(sender);
    session.setReceiver(receiver);
    session.setStartTime(startTime);
    session.setEndTime(endTime);
    session.setState(0);
    sessionDao.save(session);
    return session;
}
Also used : Session(org.roof.im.session.Session)

Aggregations

Session (org.roof.im.session.Session)6 NodeResult (com.roof.chain.support.NodeResult)2 ValueStack (com.roof.chain.api.ValueStack)1 GenericValueStack (com.roof.chain.support.GenericValueStack)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Test (org.junit.Test)1 SessionVo (org.roof.im.chain.handler.SessionVo)1 CloseSessionRequest (org.roof.im.request.CloseSessionRequest)1 UserState (org.roof.im.user.UserState)1