CountPreference

@objc(SBDCountPreference)
public enum CountPreference : Int
extension CountPreference: RawRepresentable, Codable

The enum type to represent various kinds of counts.

  • all

    The channel of this preference has all of count.

    Declaration

    Swift

    case all = 0
  • The channel of this preference has only unread message count.

    Declaration

    Swift

    case unreadMessageCountOnly = 1
  • The channel of this preference has only unread mention count.

    Declaration

    Swift

    case unreadMentionCountOnly = 2
  • off

    The channel of this preference does not get any count.

    Declaration

    Swift

    case off = 3
  • Declaration

    Swift

    public typealias RawValue = String
  • Declaration

    Swift

    public var rawValue: String { get }
  • Declaration

    Swift

    public init(rawValue: String)
  • Default constructor.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    Decoder instance

  • Encodes this object.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    Encoder instance