Package org.servalproject.servaldna.meshms

Examples of org.servalproject.servaldna.meshms.MeshMSConversationList


public class Meshms {

  static void meshms_list_conversations(SubscriberId sid) throws ServalDInterfaceException, IOException, InterruptedException
  {
    ServalDClient client = new ServerControl().getRestfulClient();
    MeshMSConversationList list = null;
    try {
      list = client.meshmsListConversations(sid);
      MeshMSConversation conv;
      while ((conv = list.nextConversation()) != null) {
        System.out.println(
          "_id=" + conv._id +
          ", my_sid=" + conv.mySid +
          ", their_sid=" + conv.theirSid +
          ", read=" + conv.isRead +
          ", last_message=" + conv.lastMessageOffset +
          ", read_offset=" + conv.readOffset
        );
      }
    }
    catch (MeshMSException e) {
      System.out.println(e.toString());
    }
    finally {
      if (list != null)
        list.close();
    }
    System.exit(0);
  }
View Full Code Here


    return RhizomeCommon.rhizomeInsert(this, author, manifest, secret, payloadStream, fileName);
  }

  public MeshMSConversationList meshmsListConversations(SubscriberId sid) throws ServalDInterfaceException, IOException, MeshMSException
  {
    MeshMSConversationList list = new MeshMSConversationList(this, sid);
    list.connect();
    return list;
  }
View Full Code Here

    return RhizomeCommon.rhizomeInsert(this, author, manifest, secret, payloadStream, fileName);
  }

  public MeshMSConversationList meshmsListConversations(SubscriberId sid) throws ServalDInterfaceException, IOException, MeshMSException
  {
    MeshMSConversationList list = new MeshMSConversationList(this, sid);
    list.connect();
    return list;
  }
View Full Code Here

TOP

Related Classes of org.servalproject.servaldna.meshms.MeshMSConversationList

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.