MessageQueryPolicy

public enum MessageQueryPolicy

Policy of Message Query

  • default: If using local storage, it is cacheThenNetwork. If not using local storage, it is onlyNetwork.
  • onlyNetwork: Only query remote server
  • onlyCache: Only query local storage
  • cacheThenNetwork: Query local storage firstly, if not get result, then query remote server.