atmodel

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 0 Imported by: 2

README

model

All used struct model for golang

N

git tag v0.0.1
git push origin --tags
go list -m github.com/aiteung/[email protected]

Documentation

Index

Constants

View Source
const (
	MediaTypeImage = MediaType(iota)
	MediaTypeVideo
	MediaTypeAudio
	MediaTypeDocument
)

Variables

View Source
var (
	AppInfo = map[MediaType]string{
		MediaTypeImage:    "WhatsApp Image Keys",
		MediaTypeVideo:    "WhatsApp Video Keys",
		MediaTypeAudio:    "WhatsApp Audio Keys",
		MediaTypeDocument: "WhatsApp Document Keys",
	}
)

Functions

This section is empty.

Types

type ButtonsMessage

type ButtonsMessage struct {
	Message WaButtonsMessage `json:"message,omitempty"`
	Buttons []WaButton       `json:"buttons,omitempty"`
}

type Chat added in v0.0.2

type Chat struct {
	Phone_number string `json:"phone_number"`
	Messages     string `json:"messages"`
}

type IteungMessage added in v0.0.2

type IteungMessage struct {
	Phone_number string  `json:"phone_number"`
	Group_name   string  `json:"group_name"`
	Alias_name   string  `json:"alias_name"`
	Messages     string  `json:"messages"`
	Is_group     string  `json:"is_group"`
	Filename     string  `json:"filename"`
	Filedata     string  `json:"filedata"`
	Latitude     float64 `json:"latitude"`
	Longitude    float64 `json:"longitude"`
	Api_key      string  `json:"api_key"`
}

type IteungRespon added in v0.0.2

type IteungRespon struct {
	Message string `json:"message"`
}

type ListMessage

type ListMessage struct {
	Title       string
	Description string
	FooterText  string
	ButtonText  string
	Sections    []WaListSection
}

type MediaType added in v0.0.2

type MediaType int

type Notif added in v0.0.2

type Notif struct {
	User     string `json:"user"`
	Server   string `json:"server"`
	Messages string `json:"messages"`
}

type NotifButton

type NotifButton struct {
	User    string         `json:"user"`
	Server  string         `json:"server"`
	Message ButtonsMessage `json:"button_messages"`
}

type NotifPool added in v0.0.3

type NotifPool struct {
	Pool         string `json:"pool"`
	NotifMessage Notif  `json:"message"`
}

type PhoneList

type PhoneList struct {
	Phones []string `json:"phones,omitempty"`
}

type QRScan added in v0.0.2

type QRScan struct {
	QR      string `json:"qr"`
	Status  string `json:"status"`
	Message string `json:"message"`
}

type Response

type Response struct {
	Response string `json:"response"`
}

type WaButton

type WaButton struct {
	ButtonId    string `json:"button_id,omitempty"`
	DisplayText string `json:"display_text,omitempty"`
}

type WaButtonsMessage

type WaButtonsMessage struct {
	HeaderText  string `json:"header_text,omitempty"`
	ContentText string `json:"content_text,omitempty"`
	FooterText  string `json:"footer_text,omitempty"`
}

type WaListRow

type WaListRow struct {
	Title       string
	Description string
	RowId       string
}

type WaListSection

type WaListSection struct {
	Title string
	Rows  []WaListRow
}

Jump to

Keyboard shortcuts

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