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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Message) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Message) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Message) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface