Package plugins.Freetalk.WoT

Examples of plugins.Freetalk.WoT.WoTMessage


          boolean removeRating = request.getPartAsStringFailsafe("RemoveRating", 16).equals("true");
         
          try {           
            synchronized (messageManager) {
            synchronized(own) {
              WoTMessage message = (WoTMessage)messageManager.get(messageID);
              if(removeRating)
                messageManager.deleteMessageRatingAndRevertEffect(messageManager.getMessageRating(own, message));
              else
                messageManager.rateMessage(own, message, Byte.parseByte(request.getPartAsStringFailsafe("TrustChange", 5)));
            }
View Full Code Here


      WoTIdentityManager identityManager = (WoTIdentityManager)mFreetalk.getIdentityManager();
      WoTMessageManager messageManager = (WoTMessageManager)mFreetalk.getMessageManager();

      synchronized(identityManager) {
      synchronized (messageManager) {
        WoTMessage message = (WoTMessage)messageManager.get(mParentMessage.getID()); // It might have be deleted meanwhile, we must re-query
        messageManager.rateMessage((WoTOwnIdentity)mOwnIdentity, message, value);
        HTMLNode successBox = addContentBox(l10n().getString("NewReplyPage.RateMessageSucceededBox.Title"));
        successBox.addChild("div", l10n().getString("NewReplyPage.RateMessageSucceededBox.Text", "value", Byte.toString(value)));
      }
      }
View Full Code Here

TOP

Related Classes of plugins.Freetalk.WoT.WoTMessage

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.