gmessages/libgm/events/ready.go

19 lines
429 B
Go
Raw Normal View History

2023-06-30 09:54:08 +00:00
package events
import (
"go.mau.fi/mautrix-gmessages/libgm/binary"
"go.mau.fi/mautrix-gmessages/libgm/util"
)
type CLIENT_READY struct {
Session *util.SessionResponse
Conversations []*binary.Conversation
}
func NewClientReady(session *util.SessionResponse, conversationList *binary.Conversations) *CLIENT_READY {
return &CLIENT_READY{
Session: session,
Conversations: conversationList.Conversations,
}
}