2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-07-06 15:56:40 -04:00
|
|
|
module NotificationLevels
|
|
|
|
def self.all
|
|
|
|
@all_levels ||= Enum.new(muted: 0,
|
|
|
|
regular: 1,
|
2022-06-19 23:49:33 -04:00
|
|
|
normal: 1, # alias for regular
|
2016-07-06 15:56:40 -04:00
|
|
|
tracking: 2,
|
|
|
|
watching: 3,
|
|
|
|
watching_first_post: 4)
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.topic_levels
|
|
|
|
@topic_levels ||= Enum.new(muted: 0,
|
|
|
|
regular: 1,
|
2022-07-12 23:37:38 -04:00
|
|
|
normal: 1, # alias for regular
|
2016-07-06 15:56:40 -04:00
|
|
|
tracking: 2,
|
|
|
|
watching: 3)
|
|
|
|
end
|
|
|
|
end
|