notificationssettings

package
v0.179.28 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationsSettings

type NotificationsSettings struct {
	// contains filtered or unexported fields
}

func NewNotificationsSettings

func NewNotificationsSettings(db *sql.DB) *NotificationsSettings

func (*NotificationsSettings) DeleteExemptions

func (ns *NotificationsSettings) DeleteExemptions(id string) error

func (*NotificationsSettings) GetAllMessages

func (ns *NotificationsSettings) GetAllMessages() (result string, err error)

func (*NotificationsSettings) GetAllowNotifications

func (ns *NotificationsSettings) GetAllowNotifications() (result bool, err error)

Non exemption settings

func (*NotificationsSettings) GetContactRequests

func (ns *NotificationsSettings) GetContactRequests() (result string, err error)

func (*NotificationsSettings) GetExGlobalMentions

func (ns *NotificationsSettings) GetExGlobalMentions(id string) (result string, err error)

func (*NotificationsSettings) GetExMuteAllMessages

func (ns *NotificationsSettings) GetExMuteAllMessages(id string) (result bool, err error)

Exemption settings

func (*NotificationsSettings) GetExOtherMessages

func (ns *NotificationsSettings) GetExOtherMessages(id string) (result string, err error)

func (*NotificationsSettings) GetExPersonalMentions

func (ns *NotificationsSettings) GetExPersonalMentions(id string) (result string, err error)

func (*NotificationsSettings) GetGlobalMentions

func (ns *NotificationsSettings) GetGlobalMentions() (result string, err error)

func (*NotificationsSettings) GetGroupChats

func (ns *NotificationsSettings) GetGroupChats() (result string, err error)

func (*NotificationsSettings) GetIdentityVerificationRequests

func (ns *NotificationsSettings) GetIdentityVerificationRequests() (result string, err error)

func (*NotificationsSettings) GetMessagePreview

func (ns *NotificationsSettings) GetMessagePreview() (result int, err error)

func (*NotificationsSettings) GetOneToOneChats

func (ns *NotificationsSettings) GetOneToOneChats() (result string, err error)

func (*NotificationsSettings) GetPersonalMentions

func (ns *NotificationsSettings) GetPersonalMentions() (result string, err error)

func (*NotificationsSettings) GetSoundEnabled

func (ns *NotificationsSettings) GetSoundEnabled() (result bool, err error)

func (*NotificationsSettings) GetVolume

func (ns *NotificationsSettings) GetVolume() (result int, err error)

func (*NotificationsSettings) SetAllMessages

func (ns *NotificationsSettings) SetAllMessages(value string) error

func (*NotificationsSettings) SetAllowNotifications

func (ns *NotificationsSettings) SetAllowNotifications(value bool) error

func (*NotificationsSettings) SetContactRequests

func (ns *NotificationsSettings) SetContactRequests(value string) error

func (*NotificationsSettings) SetExemptions

func (ns *NotificationsSettings) SetExemptions(id string, muteAllMessages bool, personalMentions string,
	globalMentions string, otherMessages string) error

func (*NotificationsSettings) SetGlobalMentions

func (ns *NotificationsSettings) SetGlobalMentions(value string) error

func (*NotificationsSettings) SetGroupChats

func (ns *NotificationsSettings) SetGroupChats(value string) error

func (*NotificationsSettings) SetIdentityVerificationRequests

func (ns *NotificationsSettings) SetIdentityVerificationRequests(value string) error

func (*NotificationsSettings) SetMessagePreview

func (ns *NotificationsSettings) SetMessagePreview(value int) error

func (*NotificationsSettings) SetOneToOneChats

func (ns *NotificationsSettings) SetOneToOneChats(value string) error

func (*NotificationsSettings) SetPersonalMentions

func (ns *NotificationsSettings) SetPersonalMentions(value string) error

func (*NotificationsSettings) SetSoundEnabled

func (ns *NotificationsSettings) SetSoundEnabled(value bool) error

func (*NotificationsSettings) SetVolume

func (ns *NotificationsSettings) SetVolume(value int) error

Jump to

Keyboard shortcuts

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