toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case TransformDialogCallIntoGroupCallErrorCode.blocked:
      return 'err_blocked_by_multiple'.l10n;
    case TransformDialogCallIntoGroupCallErrorCode.notDialog:
      return 'err_not_dialog'.l10n;
    case TransformDialogCallIntoGroupCallErrorCode.noCall:
      return 'err_call_not_found'.l10n;
    case TransformDialogCallIntoGroupCallErrorCode.wrongMembersCount:
      return 'err_wrong_members_count'.l10n;
    case TransformDialogCallIntoGroupCallErrorCode.unknownChat:
      return 'err_unknown_chat'.l10n;
    case TransformDialogCallIntoGroupCallErrorCode.unknownUser:
      return 'err_unknown_user'.l10n;
    case TransformDialogCallIntoGroupCallErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
  }
}