toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case RedialChatCallMemberErrorCode.notCallMember:
      return 'err_not_call_member'.l10n;
    case RedialChatCallMemberErrorCode.noCall:
      return 'err_call_not_found'.l10n;
    case RedialChatCallMemberErrorCode.unknownChat:
      return 'err_unknown_chat'.l10n;
    case RedialChatCallMemberErrorCode.unknownUser:
      return 'err_unknown_user'.l10n;
    case RedialChatCallMemberErrorCode.notChatMember:
      return 'err_not_member'.l10n;
    case RedialChatCallMemberErrorCode.notGroup:
      return 'err_contact_not_group'.l10n;
    case RedialChatCallMemberErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
  }
}