messenger

package
v0.0.0-...-30a5afe Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conversation

type Conversation struct {
	//Participants []struct {
	//	Name string `json:"name"`
	//} `json:"participants"`
	Messages []Message `json:"messages"`
	Title    string    `json:"title"`
}

Conversation defines the structure of a conversation in Messenger.

func NewConversation

func NewConversation(data []byte) (*Conversation, error)

NewConversation attempts to unmarshal the data from the byte slice into a new Conversation struct.

func (Conversation) MarshalEasyJSON

func (v Conversation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Conversation) MarshalJSON

func (v Conversation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Conversation) UnmarshalEasyJSON

func (v *Conversation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Conversation) UnmarshalJSON

func (v *Conversation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Message

type Message struct {
	SenderName  string `json:"sender_name"`
	TimestampMs int64  `json:"timestamp_ms"`
}

Message defines the structure of a single Messenger message.

func (Message) MarshalEasyJSON

func (v Message) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Message) MarshalJSON

func (v Message) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Message) UnmarshalEasyJSON

func (v *Message) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Message) UnmarshalJSON

func (v *Message) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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