Package com.ngt.jopenmetaverse.shared.protocol

Examples of com.ngt.jopenmetaverse.shared.protocol.ImprovedInstantMessagePacket$AgentDataBlock


      InstantMessageDialog dialog, InstantMessageOnline offline, Vector3 position, UUID regionID,
      byte[] binaryBucket)
  {
    if (target != UUID.Zero)
    {
      ImprovedInstantMessagePacket im = new ImprovedInstantMessagePacket();

      if (imSessionID.equals(UUID.Zero) || imSessionID.equals(getAgentID()))
        imSessionID = getAgentID().equals(target) ? getAgentID() : UUID.xor(target , getAgentID());

        im.AgentData.AgentID = Client.self.getAgentID();
View Full Code Here


  {
    synchronized (GroupChatSessions.getDictionary())
    {
      if (GroupChatSessions.containsKey(groupID))
      {
        ImprovedInstantMessagePacket im = new ImprovedInstantMessagePacket();

        im.AgentData.AgentID = Client.self.getAgentID();
        im.AgentData.SessionID = Client.self.getSessionID();
        im.MessageBlock.Dialog = (byte)InstantMessageDialog.SessionSend.getIndex();
        im.MessageBlock.FromAgentName = Utils.stringToBytesWithTrailingNullByte(fromName);
View Full Code Here

  /// Send a request to join a group chat session
  /// </summary>
  /// <param name="groupID"><seealso cref="UUID"/> of Group to leave</param>
  public void RequestJoinGroupChat(UUID groupID)
  {
    ImprovedInstantMessagePacket im = new ImprovedInstantMessagePacket();

    im.AgentData.AgentID = Client.self.getAgentID();
    im.AgentData.SessionID = Client.self.getSessionID();
    im.MessageBlock.Dialog = (byte)InstantMessageDialog.SessionGroupStart.getIndex();
    im.MessageBlock.FromAgentName = Utils.stringToBytesWithTrailingNullByte(Client.self.getName());
View Full Code Here

  /// from being sent until session is rejoined.
  /// </summary>
  /// <param name="groupID"><seealso cref="UUID"/> of Group chat session to leave</param>
  public void RequestLeaveGroupChat(UUID groupID)
  {
    ImprovedInstantMessagePacket im = new ImprovedInstantMessagePacket();

    im.AgentData.AgentID = Client.self.getAgentID();
    im.AgentData.SessionID = Client.self.getSessionID();
    im.MessageBlock.Dialog = (byte)InstantMessageDialog.SessionDrop.getIndex();
    im.MessageBlock.FromAgentName = Utils.stringToBytesWithTrailingNullByte(Client.self.getName());
View Full Code Here

    Packet packet = e.getPacket();
    Simulator simulator = e.getSimulator();

    if (packet.Type == PacketType.ImprovedInstantMessage)
    {
      ImprovedInstantMessagePacket im = (ImprovedInstantMessagePacket)packet;

      if (onIM != null)
      {
        InstantMessage message = new InstantMessage();
        message.FromAgentID = im.AgentData.AgentID;
View Full Code Here

      UUID destinationFolderID = FindFolderForType(type);

      // Fire the callback
      try
      {
        ImprovedInstantMessagePacket imp = new ImprovedInstantMessagePacket();
        imp.AgentData.AgentID = Client.self.getAgentID();
        imp.AgentData.SessionID = Client.self.getSessionID();
        imp.MessageBlock.FromGroup = false;
        imp.MessageBlock.ToAgentID = e.getIM().FromAgentID;
        imp.MessageBlock.Offline = 0;
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.protocol.ImprovedInstantMessagePacket$AgentDataBlock

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.