Package iqq.im.core

Examples of iqq.im.core.QQStore


  @Override
  protected QQHttpRequest onBuildRequest() throws QQException, JSONException {
    // retype:1 app:EQQ
    // itemlist:{"groupmask":{"321105219":"1","1638195794":"0","cAll":0,"idx":1075,"port":37883}}
    // vfwebqq:8b26c442e239630f250e1e74d135fd85ab78c38e7b8da1c95a2d1d560bdebd2691443df19d87e70d
    QQStore store = getContext().getStore();
    QQSession session = getContext().getSession();
    QQHttpRequest req = createHttpRequest("POST", QQConstants.URL_GROUP_MESSAGE_FILTER);
    req.addPostValue("retype", "1")// 群???
    req.addPostValue("app", "EQQ");
   
    JSONObject groupmask = new JSONObject();
    groupmask.put("cAll", 0);
    groupmask.put("idx", session.getIndex());
    groupmask.put("port", session.getPort());
    for(QQGroup g : store.getGroupList()) {
      if(g.getGin() > 0) {
        groupmask.put(g.getGin() + "", g.getMask() + "");
      }
    }
    JSONObject itemlist = new JSONObject();
    itemlist.put("groupmask", groupmask);
    req.addPostValue("itemlist", itemlist.toString());
    req.addPostValue("vfwebqq", getContext().getSession().getVfwebqq());
   
    System.out.println("UpdateGroupMessageFilterAction: " + itemlist.toString() + " - " + store.getGroupList().size());
    return req;
  }
View Full Code Here


    this.account = new QQAccount();
    this.account.setUsername(username);
    this.account.setPassword(password);
    this.session = new QQSession();
    this.store = new QQStore();
    this.notifyListener = notifyListener;
    this.actorDispatcher = actorDispatcher;
   
    this.init();
  }
View Full Code Here

TOP

Related Classes of iqq.im.core.QQStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.