getItems method

List<String>? getItems()

Inquiry method that can be used to read the "Item List" specified for this MpnSubscription.

Note that if the single-item-constructor was used, this method will return an array of length 1 containing such item.
Note: if the MpnSubscription has been created by the client, such as when obtained through LightstreamerClient.getMpnSubscriptions, items are always expressed with an "Item Group"", even if originally the MPN subscription used an "Item List".

Lifecycle This method can only be called if the MpnSubscription has been initialized with an "Item List".

Returns the "Item List" to be subscribed to through the server, or null if the MpnSubscription was initialized with an "Item Group" or was not initialized at all.

Implementation

List<String>? getItems() {
  return _getItems()?.cast<String>();
}