ubm_api

package
v0.0.0-...-9da5f0f Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
}

type At

type At struct {
	DisplayName string `json:"display_name"`
	UID         UID    `json:"uid"`
}

type CID

type CID struct {
	Messenger string `json:"messenger"`
	ChatID    string `json:"chat_id"`
	ChatType  string `json:"chat_type"`
}

func (CID) String

func (cid CID) String() string

type Chat

type Chat struct {
	CID         CID    `json:"cid"`
	Title       string `json:"title"`
	Description string `json:"description"`
}

type Image

type Image struct {
	Messenger string `json:"messenger,omitempty"`
	Format    string `json:"format,omitempty"`
	Width     int    `json:"width,omitempty"`
	Height    int    `json:"height,omitempty"`
	Data      []byte `json:"data,omitempty"`
	URL       string `json:"url,omitempty"`
	FileID    string `json:"file_id,omitempty"`
	FileSize  int    `json:"file_size,omitempty"`
}

type Location

type Location struct {
	Content   string  `json:"content"`
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
	Title     string  `json:"title"`
}

type Message

type Message struct {
	ID            string    `json:"id,omitempty"`
	From          *User     `json:"from,omitempty"`
	Chat          *Chat     `json:"chat,omitempty"`
	IsMessageToMe bool      `json:"is_message_to_me"`
	CID           *CID      `json:"cid,omitempty"`
	Type          string    `json:"type"`
	ReplyID       string    `json:"reply_id,omitempty"`
	EditID        string    `json:"edit_id,omitempty"`
	DeleteID      string    `json:"delete_id,omitempty"`
	RichText      *RichText `json:"rich_text,omitempty"`
	Sticker       *Sticker  `json:"sticker,omitempty"`
	Voice         *Voice    `json:"voice,omitempty"`
	Location      *Location `json:"location,omitempty"`
}

type Notice

type Notice struct {
}

type Response

type Response struct {
}

type RichText

type RichText []RichTextElement

type RichTextElement

type RichTextElement struct {
	Type  string `json:"type"`
	Text  string `json:"text,omitempty"`
	At    *At    `json:"at,omitempty"`
	Image *Image `json:"image,omitempty"`
}

type Sticker

type Sticker struct {
	Messenger string `json:"messenger,omitempty"`
	ID        string `json:"id"`
	PackID    string `json:"pack_id"`
	Image     *Image `json:"image"`
}

type UBM

type UBM struct {
	Type     string    `json:"type"`
	Date     int64     `json:"date"`
	Message  *Message  `json:"message,omitempty"`
	Notice   *Notice   `json:"notice,omitempty"`
	Response *Response `json:"response,omitempty"`
	Action   *Action   `json:"action,omitempty"`
	Self     *User     `json:"self,omitempty"`
}

type UID

type UID struct {
	Messenger string `json:"messenger"`
	ID        string `json:"id"`
	Username  string `json:"username"`
}

func (UID) String

func (uid UID) String() string

type User

type User struct {
	DisplayName string `json:"display_name"`
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name"`
	UID         UID    `json:"uid"`
	PrivateChat CID    `json:"private_chat"`
}

type Voice

type Voice struct {
	Messenger string `json:"messenger,omitempty"`
	Format    string `json:"format,omitempty"`
	Duration  int    `json:"duration,omitempty"`
	Data      []byte `json:"data,omitempty"`
	URL       string `json:"url,omitempty"`
	FileID    string `json:"file_id,omitempty"`
	FileSize  int    `json:"file_size,omitempty"`
}

Jump to

Keyboard shortcuts

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