DBASYNCPollArg

Objective-C

@interface DBASYNCPollArg : NSObject <DBSerializable, NSCopying>

Swift

class DBASYNCPollArg : NSObject, DBSerializable, NSCopying

The PollArg struct.

Arguments for methods that poll the status of an asynchronous job.

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

Instance fields

  • Id of the asynchronous job. This is the value of a response returned from the method that launched the job.

    Declaration

    Objective-C

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

    Swift

    var asyncJobId: String { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAsyncJobId:(nonnull NSString *)asyncJobId;

    Swift

    init(asyncJobId: String)

    Parameters

    asyncJobId

    Id of the asynchronous job. This is the value of a response returned from the method that launched the job.

    Return Value

    An initialized instance.