General Logic for Message Judgement in Client Side

  • Judge message type. There are three types of messages at present: message (the commonly used messages for push), notice (the notices generally used), command (consecutive command).
  • Judge messages by userId. Messages with userId are private messages, and messages without userId are general messages.(Only Futures)
  • Judge messages by topic. You could judge the message type through the topic.
  • Judge messages by subject. For the same type of messages with the same topic, you could judge the type of messages through their subjects.