presenter

package
v0.0.0-...-2781e78 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RootType              = "Root"
	BeginningMessageType  = "BeginningMessage"
	TweetCheckType        = "TweetCheck"
	SutabaDescriptionType = "SutabaDescription"
	GoodEmojiType         = "GoodEmoji"
	BadEmojiType          = "BadEmoji"
	LastMessageType       = "LastMessage"
	ExclamationType       = "Exclamation"
	ThinkingEmojiType     = "ThinkingEmoji"
	ConfidenceType        = "Confidence"
	ConfidencePercentType = "ConfidencePercent"
	ConfidenceHighValue   = "High"
	ConfidenceMediumValue = "Medium"
	ConfidenceLowValue    = "Low"
	ClassType             = "Class"
	ClassSutabaValue      = "sutaba"
	ClassRamenValue       = "ramen"
	ClassOtherValue       = "other"
	DebugType             = "Debug"
	DebugOnValue          = "on"
	DebugOffValue         = "off"
	RuleNumType           = "RuleNum"
	TargetNameType        = "TargetName"
	RamenSuffixType       = "RamenSuffix"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MessagePresenter

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

func NewPresenter

func NewPresenter(view view.TwitterView) *MessagePresenter

func (*MessagePresenter) PostResult

func (r *MessagePresenter) PostResult(result *domain.ClassifyResult, isDebug bool) error

func (*MessagePresenter) PostText

func (r *MessagePresenter) PostText(text string) error

func (*MessagePresenter) ReplyResultToMessage

func (r *MessagePresenter) ReplyResultToMessage(toMessage *model.Message, result *domain.ClassifyResult, isDebug bool) error

func (*MessagePresenter) ReplyResultToMessageWithReference

func (r *MessagePresenter) ReplyResultToMessageWithReference(targetMessage, referredMessage *model.Message, result *domain.ClassifyResult, isDebug bool) error

func (*MessagePresenter) ReplyToMessage

func (r *MessagePresenter) ReplyToMessage(toMessage *model.Message, text string) error

type MessagenType

type MessagenType string

Jump to

Keyboard shortcuts

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