Documentation ¶
Index ¶
- type NotificationsSettings
- func (ns *NotificationsSettings) DeleteExemptions(id string) error
- func (ns *NotificationsSettings) GetAllMessages() (result string, err error)
- func (ns *NotificationsSettings) GetAllowNotifications() (result bool, err error)
- func (ns *NotificationsSettings) GetContactRequests() (result string, err error)
- func (ns *NotificationsSettings) GetExGlobalMentions(id string) (result string, err error)
- func (ns *NotificationsSettings) GetExMuteAllMessages(id string) (result bool, err error)
- func (ns *NotificationsSettings) GetExOtherMessages(id string) (result string, err error)
- func (ns *NotificationsSettings) GetExPersonalMentions(id string) (result string, err error)
- func (ns *NotificationsSettings) GetGlobalMentions() (result string, err error)
- func (ns *NotificationsSettings) GetGroupChats() (result string, err error)
- func (ns *NotificationsSettings) GetIdentityVerificationRequests() (result string, err error)
- func (ns *NotificationsSettings) GetMessagePreview() (result int, err error)
- func (ns *NotificationsSettings) GetOneToOneChats() (result string, err error)
- func (ns *NotificationsSettings) GetPersonalMentions() (result string, err error)
- func (ns *NotificationsSettings) GetSoundEnabled() (result bool, err error)
- func (ns *NotificationsSettings) GetVolume() (result int, err error)
- func (ns *NotificationsSettings) SetAllMessages(value string) error
- func (ns *NotificationsSettings) SetAllowNotifications(value bool) error
- func (ns *NotificationsSettings) SetContactRequests(value string) error
- func (ns *NotificationsSettings) SetExemptions(id string, muteAllMessages bool, personalMentions string, ...) error
- func (ns *NotificationsSettings) SetGlobalMentions(value string) error
- func (ns *NotificationsSettings) SetGroupChats(value string) error
- func (ns *NotificationsSettings) SetIdentityVerificationRequests(value string) error
- func (ns *NotificationsSettings) SetMessagePreview(value int) error
- func (ns *NotificationsSettings) SetOneToOneChats(value string) error
- func (ns *NotificationsSettings) SetPersonalMentions(value string) error
- func (ns *NotificationsSettings) SetSoundEnabled(value bool) error
- func (ns *NotificationsSettings) SetVolume(value int) error
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 (*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
Click to show internal directories.
Click to hide internal directories.