Examples of CustomMessage


Examples of lineage2.gameserver.network.serverpackets.components.CustomMessage

          Player owner = target.getPlayer();
          if (owner != null)
          {
            if (activeChar == target)
            {
              owner.sendMessage(new CustomMessage("YOU_HAVE_RESTORED_S1_HP_OF_YOUR_PET", owner).addNumber(Math.round(addToHp)));
            }
            else if (owner == activeChar)
            {
              owner.sendMessage(new CustomMessage("YOU_HAVE_RESTORED_S1_HP_OF_YOUR_PET", owner).addNumber(Math.round(addToHp)));
            }
            else
            {
              owner.sendMessage(new CustomMessage("S1_HAS_BEEN_RESTORED_S2_HP_OF_YOUR_PET", owner).addString(activeChar.getName()).addNumber(Math.round(addToHp)));
            }
          }
        }
        getEffects(activeChar, target, getActivateRate() > 0, false);
      }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.CustomMessage

  {
    for (int i : Config.ALT_DISABLED_MULTISELL)
    {
      if (i == listId)
      {
        player.sendMessage(new CustomMessage("common.Disabled", player));
        return;
      }
    }
    MultiSellListContainer list = getList(listId);
    if (list == null)
    {
      player.sendMessage(new CustomMessage("common.Disabled", player));
      return;
    }
    SeparateAndSend(list, player, taxRate);
  }
View Full Code Here

Examples of org.jboss.test.mdb.bean.CustomMessage

      getLog().debug("TestQueue: Sending 10 messages 1-10");
      for (int i = 1; i < 11; i++)
      {
         ObjectMessage message = session.createObjectMessage();
         message.setObject(new CustomMessage(i));
         sender.send(queue, message);
      }

      sender.close();
      session.close();
View Full Code Here

Examples of org.jboss.test.mdb.bean.CustomMessage

      getLog().debug("TestQueue: Sending 10 messages 1-10");
      for (int i = 1; i < 11; i++)
      {
         ObjectMessage message = session.createObjectMessage();
         message.setObject(new CustomMessage(i));
         sender.send(queue, message);
      }

      sender.close();
      session.close();
View Full Code Here

Examples of webworks.message.list.model.CustomMessage

    {
      try {
      CustomMessageStore messageStore = CustomMessageStore.getInstance(_GUID);
      int length = messageStore.getInboxMessages().size();
      for (int i = 0; i < length; i++) {
        CustomMessage msg = (CustomMessage) messageStore.getInboxMessages().getAt(i);
        msg.markRead();
      }
      ApplicationMessageFolderRegistry reg = ApplicationMessageFolderRegistry.getInstance();
      ApplicationMessageFolder folder = reg.getApplicationFolder(CustomMessage.INBOX_FOLDER_ID);
      folder.fireReset();
      } catch (Exception e)
View Full Code Here

Examples of webworks.message.list.model.CustomMessage

        synchronized(messageStore)
        {
          
      for(int i = 0; i < messages.length; i++)
      {
        CustomMessage message = (CustomMessage) messages[i];

        switch(action)
        {
          case ApplicationMessageFolderListener.MESSAGE_DELETED:     
            messageStore.deleteInboxMessage(message);
           
            // Invoke our callback
            MessageListNamespace.getInstance().invokeItemDeleted(message);
           
            break;
          case ApplicationMessageFolderListener.MESSAGE_MARKED_OPENED:

            // Update message
            message.markRead();

            // Update storage
            messageStore.commitMessage(message);

            // Notify GUI that message has changed
            folder.fireElementUpdated(message, message);
         
            // Invoke our callback
            MessageListNamespace.getInstance().invokeItemMarkedRead(message);
           
            break;
          case ApplicationMessageFolderListener.MESSAGE_MARKED_UNOPENED:

            // Update message
            message.markAsNew();

            // Update storage
            messageStore.commitMessage(message);

            // Notify GUI that message has changed
View Full Code Here

Examples of webworks.message.list.model.CustomMessage

         */
        public Object run(Object context)
        {
            if(context instanceof CustomMessage)
            {
                CustomMessage message = (CustomMessage) context;
                message.markRead();
                ApplicationMessageFolderRegistry reg = ApplicationMessageFolderRegistry.getInstance();
                ApplicationMessageFolder folder = reg.getApplicationFolder(CustomMessage.INBOX_FOLDER_ID);
                folder.fireElementUpdated(message, message);
       
        // Invoke our callback
View Full Code Here

Examples of webworks.message.list.model.CustomMessage

         */
        public Object run(Object context)
        {
            if(context instanceof CustomMessage)
            {
                CustomMessage message = (CustomMessage) context;
                message.markUnRead();
                ApplicationMessageFolderRegistry reg = ApplicationMessageFolderRegistry.getInstance();
                ApplicationMessageFolder folder = reg.getApplicationFolder(CustomMessage.INBOX_FOLDER_ID);
                folder.fireElementUpdated(message, message);
       
        // Invoke our callback
View Full Code Here

Examples of webworks.message.list.model.CustomMessage

         */
        public Object run(Object context)
        {
            if(context instanceof CustomMessage)
            {
                CustomMessage message = (CustomMessage) context;

                // Update status if message is new
                if(message.isNew())
                {
                    message.markRead();
                    ApplicationMessageFolderRegistry reg = ApplicationMessageFolderRegistry.getInstance();
                    ApplicationMessageFolder folder = reg.getApplicationFolder(CustomMessage.INBOX_FOLDER_ID);
                    folder.fireElementUpdated(message, message);
                }
       
        // Invoke our callback
                message.invokeItemOpen(MessageListNamespace.getInstance());
            }
            return context;
        }
View Full Code Here

Examples of webworks.message.list.model.CustomMessage

          throw new Exception("Invalid parameter. 'title' cannot be null");
         
        if (description == null)
          throw new Exception("Invalid parameter. 'description' cannot be null");
        
        CustomMessage message = CustomMessageServices.getMessage(id);

        if (message == null)
          throw new Exception("No item exists to update.");
         
        CustomMessageServices.updateMessage(message,id,title,description, imageNew, imageRead)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.