usecases

package
v0.0.0-...-c197fc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocationSequenceState      = "location_sequence"
	NextDayOrDateResponseState = "next_day_or_date_response"
	EnterDateResponseState     = "enter_date_response"
	CallbackQuery              = "CallbackQuery"
	Message                    = "Message"

	TypeMessage = "Please type required message"
	PressButton = "Please press required button"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HelpUsecase

type HelpUsecase struct {
	// contains filtered or unexported fields
}

func (*HelpUsecase) Handle

type HelpUsecaseFactory

type HelpUsecaseFactory struct {
}

func (*HelpUsecaseFactory) Command

func (f *HelpUsecaseFactory) Command() string

func (*HelpUsecaseFactory) Create

func (f *HelpUsecaseFactory) Create(chatID int64) controller.Usecase

type InvalidCommandUsecase

type InvalidCommandUsecase struct {
	// contains filtered or unexported fields
}

func (*InvalidCommandUsecase) Handle

type InvalidCommandUsecaseFactory

type InvalidCommandUsecaseFactory struct {
}

func (*InvalidCommandUsecaseFactory) Command

func (f *InvalidCommandUsecaseFactory) Command() string

func (*InvalidCommandUsecaseFactory) Create

type PredictUsecase

type PredictUsecase struct {
	// contains filtered or unexported fields
}

func (*PredictUsecase) CheckCorrectnessOfCallback

func (u *PredictUsecase) CheckCorrectnessOfCallback(update *tgbotapi.Update) (tgbotapi.MessageConfig, error)

func (*PredictUsecase) Handle

func (u *PredictUsecase) Handle(update *tgbotapi.Update) (tgbotapi.Chattable, c.Status)

func (*PredictUsecase) RequestWeatherForecast

func (u *PredictUsecase) RequestWeatherForecast() (tgbotapi.Chattable, c.Status)

type PredictUsecaseFactory

type PredictUsecaseFactory struct {
	WeatherService services.WeatherService
	GeoService     services.GeoService
	DateParser     date_parser.DateParser
}

func (*PredictUsecaseFactory) Command

func (f *PredictUsecaseFactory) Command() string

func (*PredictUsecaseFactory) Create

func (f *PredictUsecaseFactory) Create(chatID int64) c.Usecase

type StartUsecase

type StartUsecase struct {
	// contains filtered or unexported fields
}

func (*StartUsecase) Handle

type StartUsecaseFactory

type StartUsecaseFactory struct {
}

func (*StartUsecaseFactory) Command

func (f *StartUsecaseFactory) Command() string

func (*StartUsecaseFactory) Create

func (f *StartUsecaseFactory) Create(chatID int64) controller.Usecase

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL