Переименовал MessagePayload в MailPayload
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a53b37eb6c
commit
9b8bb4a800
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user