toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case UseChatDirectLinkErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
    case UseChatDirectLinkErrorCode.blocked:
      return 'err_you_are_blocked'.l10n;
    case UseChatDirectLinkErrorCode.unknownDirectLink:
      return 'err_unknown_chat_direct_link'.l10n;
  }
}