getClientInstanceKey static method

String getClientInstanceKey({
  1. required String baseUrl,
  2. required String inboxIdentifier,
  3. String? userIdentifier,
})

Create a DOO client instance key using the DOO client instance baseurl, inboxIdentifier and userIdentifier. Client instance keys are used to differentiate between client instances and their data (contact (DOOContact),conversation (DOOConversation) and messages (DOOMessage))

Create separate DOOClient instances with same baseUrl, inboxIdentifier, userIdentifier and persistence enabled will be regarded as same therefore use same contact and conversation.

Implementation

static String getClientInstanceKey(
    {required String baseUrl,
    required String inboxIdentifier,
    String? userIdentifier}) {
  return "$baseUrl$_keySeparator$userIdentifier$_keySeparator$inboxIdentifier";
}