Class DraftHelper

  • All Implemented Interfaces:

    
    public class DraftHelper
    
                        

    Created by luoyanlong on 2018/11/23. 保存草稿时如果有@信息,把MentionBlock序列化保存起来, 之后可通过反序列化添加到RongMentionManager中

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      DraftHelper(String s)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static String encode(String content, String mentionBlocks) 没有@信息用普通文本保存 有@信息用json格式保存
      String decode()
      void restoreMentionInfo()
      static String getDraftContent(String json)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DraftHelper

        DraftHelper(String s)
    • Method Detail

      • encode

         static String encode(String content, String mentionBlocks)

        没有@信息用普通文本保存 有@信息用json格式保存