#3 session API draft
This commit is contained in:
@@ -6,6 +6,7 @@ import java.util.Random;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
import ru.penkrat.stbf.api.BotRequest;
|
||||
import ru.penkrat.stbf.api.BotSession;
|
||||
|
||||
@Builder
|
||||
class BotRequestImpl implements BotRequest {
|
||||
@@ -14,6 +15,7 @@ class BotRequestImpl implements BotRequest {
|
||||
private String phoneNumber;
|
||||
private String callbackData;
|
||||
private String callbackMessageText;
|
||||
private BotSession session;
|
||||
|
||||
@Getter
|
||||
@Builder.Default
|
||||
@@ -39,4 +41,9 @@ class BotRequestImpl implements BotRequest {
|
||||
return Optional.ofNullable(callbackMessageText);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BotSession getSession() {
|
||||
return session;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user