toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case CreateChatContactErrorCode.unknownUser:
      return 'err_contact_unknown_user'.l10n;
    case CreateChatContactErrorCode.unknownChat:
      return 'err_contact_unknown_chat'.l10n;
    case CreateChatContactErrorCode.notGroup:
      return 'err_contact_not_group'.l10n;
    case CreateChatContactErrorCode.wrongRecordsCount:
      return 'err_contact_too_many'.l10n;
    case CreateChatContactErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
  }
}