PNDataSyncClassLevel

The level at which a DataSync entity class is defined. Used on the request side of DataSync APIs (e.g. com.pubnub.api.datasync.DataSync.createChannel / com.pubnub.api.datasync.DataSync.getChannels); the enum's value is written to the entity_class_level wire parameter.

The read side (e.g. PNDataSyncChannel.classLevel) is modeled as a String rather than this enum, so a future or unexpected server value never fails deserialization.

Entries

Link copied to clipboard

Class defined at the global level (shared across all keysets).

Link copied to clipboard

Class defined at the subscribe-key level.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

The wire string sent to the server.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.