Class Device
- java.lang.Object
-
- io.github.ma1uta.matrix.push.model.Device
-
public class Device extends Object
Device.
-
-
Field Summary
Fields Modifier and Type Field Description private String
appId
Required.private PusherData
data
A dictionary of additional pusher-specific data.private String
pushKey
Required.private Long
pushKeyTs
The unix timestamp (in seconds) when the pushkey was last updated.private Map<String,String>
tweaks
A dictionary of customisations made to the way this notification is to be presented.
-
Constructor Summary
Constructors Constructor Description Device()
-
Method Summary
Modifier and Type Method Description String
getAppId()
PusherData
getData()
String
getPushKey()
Long
getPushKeyTs()
Map<String,String>
getTweaks()
void
setAppId(String appId)
void
setData(PusherData data)
void
setPushKey(String pushKey)
void
setPushKeyTs(Long pushKeyTs)
void
setTweaks(Map<String,String> tweaks)
-
-
-
Field Detail
-
appId
private String appId
Required. The app_id given when the pusher was created.
-
pushKey
private String pushKey
Required. The pushkey given when the pusher was created.
-
pushKeyTs
private Long pushKeyTs
The unix timestamp (in seconds) when the pushkey was last updated.
-
data
private PusherData data
A dictionary of additional pusher-specific data. For 'http' pushers, this is the data dictionary passed in at pusher creation minus the url key.
-
-
Method Detail
-
getAppId
public String getAppId()
-
setAppId
public void setAppId(String appId)
-
getPushKey
public String getPushKey()
-
setPushKey
public void setPushKey(String pushKey)
-
getPushKeyTs
public Long getPushKeyTs()
-
setPushKeyTs
public void setPushKeyTs(Long pushKeyTs)
-
getData
public PusherData getData()
-
setData
public void setData(PusherData data)
-
-