Module com.gluonhq.cloudlink.client
Class TopicSubscription
- java.lang.Object
-
- com.gluonhq.cloudlink.client.push.TopicSubscription
-
public class TopicSubscription extends Object
A topic subscription holds the subscription information of a certain device with a certain topic. Push notifications can be sent to a topic, where only devices that are subscribed to that topic will receive the notification.
-
-
Constructor Summary
Constructors Constructor Description TopicSubscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCreationDate()The date when the subscription is created as a unix timestamp in milliseconds.StringgetDeviceIdentifier()The unique identifier of the device.StringgetTopic()The topic the device is subscribed to.voidsetCreationDate(long creationDate)voidsetDeviceIdentifier(String deviceIdentifier)voidsetTopic(String topic)
-
-
-
Method Detail
-
getDeviceIdentifier
public String getDeviceIdentifier()
The unique identifier of the device.- Returns:
- A unique identifier of the device.
-
setDeviceIdentifier
public void setDeviceIdentifier(String deviceIdentifier)
-
getTopic
public String getTopic()
The topic the device is subscribed to.- Returns:
- The topic of the subscription.
-
setTopic
public void setTopic(String topic)
-
getCreationDate
public long getCreationDate()
The date when the subscription is created as a unix timestamp in milliseconds.- Returns:
- The date when the subscription is created.
-
setCreationDate
public void setCreationDate(long creationDate)
-
-