PNDataSyncSortField

data class PNDataSyncSortField(val property: String, val ascending: Boolean = true)

A single DataSync sort criterion applied by the list endpoints (e.g. com.pubnub.api.datasync.DataSync.getChannels).

Unlike App Context v2's PNSortKey (which fixes the sortable fields to an enum), DataSync sorts on arbitrary payload properties, so property is free-form.

Constructors

Link copied to clipboard
constructor(property: String, ascending: Boolean = true)

Properties

Link copied to clipboard

Sort direction; true (default) is ascending, false is descending.

Link copied to clipboard

The payload property name to sort by.