Class MpnPlatformType

java.lang.Object
com.lightstreamer.adapters.remote.MpnPlatformType

public class MpnPlatformType extends Object
Identifies a Push Notifications platform type, used with MPN-related requests of the MetadataProvider.
It is used by Lightstreamer to specify the platform associated with the notified client requests.
The available constants refer to the platform types currently supported.
Edition Note:
Push Notifications is an optional feature, available depending on Edition and License Type. To know what features are enabled by your license, please see the License tab of the Monitoring Dashboard (by default, available at /dashboard).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final MpnPlatformType
    Refers to Push Notifications for Apple platforms, such as iOS, macOS and tvOS.
    static final MpnPlatformType
    Refers to Push Notifications for Google platforms, such as Android and Chrome.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Used by Lightstreamer to create a MpnPlatformType instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    final String
    Returns the internal name of the platform type.
    int
    Returns a hash code value for the object.
    Returns a string representation of the MpnPlatformType.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • Apple

      @Nonnull public static final MpnPlatformType Apple
      Refers to Push Notifications for Apple platforms, such as iOS, macOS and tvOS. The back-end service for Apple platforms is APNs ("Apple Push Notification service"). Apple, iOS, macOS and tvOS are registered trademarks of Apple, Inc.
    • Google

      @Nonnull public static final MpnPlatformType Google
      Refers to Push Notifications for Google platforms, such as Android and Chrome. The back-end service for Google platforms is FCM ("Firebase Cloud Messaging"). Google, Android and Chrome are registered trademarks of Google Inc.
  • Constructor Details

    • MpnPlatformType

      public MpnPlatformType(@Nonnull String name)
      Used by Lightstreamer to create a MpnPlatformType instance.
      Parameters:
      name - A platform type name.
  • Method Details

    • getName

      @Nonnull public final String getName()
      Returns the internal name of the platform type.
      Returns:
      the platform type internal name.
    • toString

      @Nonnull public String toString()
      Returns a string representation of the MpnPlatformType. An MpnPlatformType object is represented by its internal name. E.g.:
       Apple
       
      Overrides:
      toString in class Object
      Returns:
      a string representation of the MpnPlatformType.
    • equals

      public boolean equals(@Nullable Object obj)
      Indicates whether some other object is "equal to" this one. Two MpnPlatformType objects are equal if their internal names are equal.
      Overrides:
      equals in class Object
      Returns:
      true if this object is equal to the obj argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.