gmessages/libgm/events/settings.go
Tulir Asokan 1615e146b6 Update library
Co-authored-by: zero <108243503+0xzer@users.noreply.github.com>
2023-07-09 14:49:55 +03:00

21 lines
397 B
Go

package events
import "go.mau.fi/mautrix-gmessages/libgm/binary"
type SettingEvent interface {
GetSettings() *binary.Settings
}
type SETTINGS_UPDATED struct {
Settings *binary.Settings
}
func (su *SETTINGS_UPDATED) GetSettings() *binary.Settings {
return su.Settings
}
func NewSettingsUpdated(settings *binary.Settings) SettingEvent {
return &SETTINGS_UPDATED{
Settings: settings,
}
}