DBTEAMApiApp

Objective-C

@interface DBTEAMApiApp : NSObject <DBSerializable, NSCopying>

Swift

class DBTEAMApiApp : NSObject, DBSerializable, NSCopying

The ApiApp struct.

Information on linked third party applications.

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

Instance fields

  • The application unique id.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull appId;

    Swift

    var appId: String { get }
  • The application name.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull appName;

    Swift

    var appName: String { get }
  • The application publisher name.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *publisher;

    Swift

    var publisher: String? { get }
  • The publisher’s URL.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *publisherUrl;

    Swift

    var publisherUrl: String? { get }
  • The time this application was linked.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *linked;

    Swift

    var linked: Date? { get }
  • Whether the linked application uses a dedicated folder.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSNumber *_Nonnull isAppFolder;

    Swift

    var isAppFolder: NSNumber { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAppId:(nonnull NSString *)appId
                                  appName:(nonnull NSString *)appName
                              isAppFolder:(nonnull NSNumber *)isAppFolder
                                publisher:(nullable NSString *)publisher
                             publisherUrl:(nullable NSString *)publisherUrl
                                   linked:(nullable NSDate *)linked;

    Swift

    init(appId: String, appName: String, isAppFolder: NSNumber, publisher: String?, publisherUrl: String?, linked: Date?)

    Parameters

    appId

    The application unique id.

    appName

    The application name.

    isAppFolder

    Whether the linked application uses a dedicated folder.

    publisher

    The application publisher name.

    publisherUrl

    The publisher’s URL.

    linked

    The time this application was linked.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAppId:(nonnull NSString *)appId
                                  appName:(nonnull NSString *)appName
                              isAppFolder:(nonnull NSNumber *)isAppFolder;

    Swift

    init(appId: String, appName: String, isAppFolder: NSNumber)

    Parameters

    appId

    The application unique id.

    appName

    The application name.

    isAppFolder

    Whether the linked application uses a dedicated folder.

    Return Value

    An initialized instance.