Переименовал MessagePayload в MailPayload
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2023-02-15 22:44:11 +03:00
parent a53b37eb6c
commit 9b8bb4a800
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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<String> USERNAME = ContextKey.of("KEY", String.class);
private MessagePayload() {
private MailPayload() {
Exceptions.utilityClass();
}