Class MpnPlatformType


  • public class MpnPlatformType
    extends java.lang.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 MpnPlatformType Apple
      Refers to Push Notifications for Apple platforms, such as iOS, macOS and tvOS.
      static MpnPlatformType Google
      Refers to Push Notifications for Google platforms, such as Android and Chrome.
    • Constructor Summary

      Constructors 
      Constructor Description
      MpnPlatformType​(java.lang.String name)
      Used by Lightstreamer to create an MpnPlatformType instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Indicates whether some other object is "equal to" this one.
      java.lang.String getName()
      Returns the internal name of the platform type.
      int hashCode()
      Returns a hash code value for the object.
      java.lang.String toString()
      Returns a string representation of the MpnPlatformType.
      • Methods inherited from class java.lang.Object

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

      • 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 Detail

      • MpnPlatformType

        public MpnPlatformType​(@Nonnull
                               java.lang.String name)
        Used by Lightstreamer to create an MpnPlatformType instance.
        Parameters:
        name - a platform type name
    • Method Detail

      • getName

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

        @Nonnull
        public java.lang.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 java.lang.Object
        Returns:
        a string representation of the MpnPlatformType.
      • equals

        public boolean equals​(@Nullable
                              java.lang.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 java.lang.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 java.lang.Object
        Returns:
        a hash code value for this object.