interfaces

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrChatMessageTextEmpty         = errors.New("texto inválido")
	ErrChatMessageNumberEmpty       = errors.New("número inválido")
	ErrChatMessageContactIDEmpty    = errors.New("contactId inválido")
	ErrChatMessageServiceIDEmpty    = errors.New("serviceId inválido")
	ErrChatMessageFileBase64Empty   = errors.New("base64 inválido")
	ErrChatMessageFileMimetypeEmpty = errors.New("mimetype inválido")
	ErrChatMessageFileNameEmpty     = errors.New("name inválido")
	ErrAuthenticationFailed         = errors.New("autenticação falhou")
)

Functions

This section is empty.

Types

type IChat

type IChat interface {
	SendMessage(IChatMessage) error
}

type IChatFile

type IChatFile interface {
	GetBase64() string
	GetMimetype() string
	GetName() string
	SetBase64(string) error
	SetMimetype(string) error
	SetName(string) error
	Validate() error
}

type IChatMessage

type IChatMessage interface {
	GetText() string
	GetNumber() string
	GetContactID() string
	GetServiceID() string
	GetFile() IChatFile
	SetText(string) error
	SetNumber(string) error
	SetContactID(string) error
	SetServiceID(string) error
	SetFile(IChatFile) error
	ToJSON() (string, error)
	Validate() error
}

type ISendMessageResponse

type ISendMessageResponse interface {
	GetID() string
}

Jump to

Keyboard shortcuts

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