From 9b8bb4a800f0fc4f838baff313464cd539f0b1e1 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Wed, 15 Feb 2023 22:44:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BB=20MessagePayload=20=D0=B2=20Mail?= =?UTF-8?q?Payload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../godfather/telegram/main/consumer/MessageMailConvert.java | 4 ++-- .../main/context/{MessagePayload.java => MailPayload.java} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/{MessagePayload.java => MailPayload.java} (81%) diff --git a/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageMailConvert.java b/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageMailConvert.java index 3d8ee25..35fe655 100644 --- a/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageMailConvert.java +++ b/telegram-consumer/telegram-consumer-main/src/main/java/dev/struchkov/godfather/telegram/main/consumer/MessageMailConvert.java @@ -8,7 +8,7 @@ import dev.struchkov.godfather.telegram.domain.attachment.DocumentAttachment; import dev.struchkov.godfather.telegram.domain.attachment.LinkAttachment; import dev.struchkov.godfather.telegram.domain.attachment.Picture; import dev.struchkov.godfather.telegram.domain.attachment.PictureGroupAttachment; -import dev.struchkov.godfather.telegram.main.context.MessagePayload; +import dev.struchkov.godfather.telegram.main.context.MailPayload; import dev.struchkov.haiti.utils.Checker; import dev.struchkov.haiti.utils.Strings; import org.telegram.telegrambots.meta.api.objects.Chat; @@ -49,7 +49,7 @@ public final class MessageMailConvert { final Chat chat = message.getChat(); mail.setFirstName(chat.getFirstName()); mail.setLastName(chat.getLastName()); - mail.setPayload(MessagePayload.USERNAME, chat.getUserName()); + mail.setPayload(MailPayload.USERNAME, chat.getUserName()); convertDocument(message.getDocument()).ifPresent(mail::addAttachment); convertContact(message.getContact()).ifPresent(mail::addAttachment); diff --git a/telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/MessagePayload.java b/telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/MailPayload.java similarity index 81% rename from telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/MessagePayload.java rename to telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/MailPayload.java index 8cc2fcf..012b489 100644 --- a/telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/MessagePayload.java +++ b/telegram-context/telegram-context-main/src/main/java/dev/struchkov/godfather/telegram/main/context/MailPayload.java @@ -3,11 +3,11 @@ package dev.struchkov.godfather.telegram.main.context; import dev.struchkov.godfather.main.domain.ContextKey; import dev.struchkov.haiti.utils.Exceptions; -public final class MessagePayload { +public final class MailPayload { public static final ContextKey USERNAME = ContextKey.of("KEY", String.class); - private MessagePayload() { + private MailPayload() { Exceptions.utilityClass(); }