gmessages/libgm/events/ready.go

19 lines
426 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"
)
2023-06-30 13:09:29 +00:00
type ClientReady struct {
2023-06-30 09:54:08 +00:00
Session *util.SessionResponse
Conversations []*binary.Conversation
}
2023-06-30 13:09:29 +00:00
func NewClientReady(session *util.SessionResponse, conversationList *binary.Conversations) *ClientReady {
return &ClientReady{
2023-06-30 09:54:08 +00:00
Session: session,
Conversations: conversationList.Conversations,
}
}