DBPAPERFolderSubscriptionLevel

Objective-C

@interface DBPAPERFolderSubscriptionLevel : NSObject <DBSerializable, NSCopying>

Swift

class DBPAPERFolderSubscriptionLevel : NSObject, DBSerializable, NSCopying

The FolderSubscriptionLevel union.

The subscription level of a Paper folder.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

Constructors

  • Initializes union class with tag state of “none”.

    Description of the “none” tag state: Not shown in activity, no email messages.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithNone;

    Swift

    init(none: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “activity_only”.

    Description of the “activity_only” tag state: Shown in activity, no email messages.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithActivityOnly;

    Swift

    init(activityOnly: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “daily_emails”.

    Description of the “daily_emails” tag state: Shown in activity, daily email messages.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDailyEmails;

    Swift

    init(dailyEmails: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “weekly_emails”.

    Description of the “weekly_emails” tag state: Shown in activity, weekly email messages.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithWeeklyEmails;

    Swift

    init(weeklyEmails: ())

    Return Value

    An initialized instance.

Tag state methods

  • Retrieves whether the union’s current tag state has value “none”.

    Declaration

    Objective-C

    - (BOOL)isNone;

    Swift

    func isNone() -> Bool

    Return Value

    Whether the union’s current tag state has value “none”.

  • Retrieves whether the union’s current tag state has value “activity_only”.

    Declaration

    Objective-C

    - (BOOL)isActivityOnly;

    Swift

    func isActivityOnly() -> Bool

    Return Value

    Whether the union’s current tag state has value “activity_only”.

  • Retrieves whether the union’s current tag state has value “daily_emails”.

    Declaration

    Objective-C

    - (BOOL)isDailyEmails;

    Swift

    func isDailyEmails() -> Bool

    Return Value

    Whether the union’s current tag state has value “daily_emails”.

  • Retrieves whether the union’s current tag state has value “weekly_emails”.

    Declaration

    Objective-C

    - (BOOL)isWeeklyEmails;

    Swift

    func isWeeklyEmails() -> Bool

    Return Value

    Whether the union’s current tag state has value “weekly_emails”.

  • Retrieves string value of union’s current tag state.

    Declaration

    Objective-C

    - (nonnull NSString *)tagName;

    Swift

    func tagName() -> String

    Return Value

    A human-readable string representing the union’s current tag state.