getFields method

List<String>? getFields()

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

Note: if the MpnSubscription has been created by the client, such as when obtained through LightstreamerClient.getMpnSubscriptions, fields are always expressed with a "Field Schema"", even if originally the MPN subscription used a "Field List".

Lifecycle This method can only be called if the MpnSubscription has been initialized using a "Field List".

Returns the "Field List" to be subscribed to through the server, or null if the MpnSubscription was initialized with a "Field Schema" or was not initialized at all.

Implementation

List<String>? getFields() {
  return _fields?.toList();
}