toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case ToggleChatCallHandErrorCode.notCallMember:
      return 'err_not_call_member'.l10n;
    case ToggleChatCallHandErrorCode.noCall:
      return 'err_call_not_found'.l10n;
    case ToggleChatCallHandErrorCode.unknownChat:
      return 'err_unknown_chat'.l10n;
    case ToggleChatCallHandErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
  }
}