getClientInstanceKey static method

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

Create a squadwe client instance key using the squadwe client instance baseurl, inboxIdentifier and userIdentifier. Client instance keys are used to differentiate between client instances and their data (contact (SquadweContact),conversation (SquadweConversation) and messages (SquadweMessage))

Create separate SquadweClient 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";
}