Class Pusher
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.push.Pusher
-
- Direct Known Subclasses:
PushersRequest
public class Pusher extends Object
Pusher.
A pusher is a worker on the homeserver that manages the sending of HTTP notifications for a user. A user can have multiple pushers: one per device.
-
-
Field Summary
Fields Modifier and Type Field Description private StringappDisplayNameA string that will allow the user to identify what application owns this pusher.private StringappIdThis is a reverse-DNS style identifier for the application.private PusherDatadataA dictionary of information for the pusher implementation itself.private StringdeviceDisplayNameA string that will allow the user to identify what device owns this pusher.private StringkindThe kind of pusher.private StringlangThe preferred language for receiving notifications (e.g.private StringprofileTagThis string determines which set of device specific rules this pusher executes.private StringpushkeyThis is a unique identifier for this pusher.
-
Constructor Summary
Constructors Constructor Description Pusher()
-
Method Summary
Modifier and Type Method Description StringgetAppDisplayName()StringgetAppId()PusherDatagetData()StringgetDeviceDisplayName()StringgetKind()StringgetLang()StringgetProfileTag()StringgetPushkey()voidsetAppDisplayName(String appDisplayName)voidsetAppId(String appId)voidsetData(PusherData data)voidsetDeviceDisplayName(String deviceDisplayName)voidsetKind(String kind)voidsetLang(String lang)voidsetProfileTag(String profileTag)voidsetPushkey(String pushkey)
-
-
-
Field Detail
-
pushkey
private String pushkey
This is a unique identifier for this pusher. See /set for more detail. Max length, 512 bytes.
-
kind
private String kind
The kind of pusher. "http" is a pusher that sends HTTP pokes.
-
appId
private String appId
This is a reverse-DNS style identifier for the application. Max length, 64 chars.
-
appDisplayName
private String appDisplayName
A string that will allow the user to identify what application owns this pusher.
-
deviceDisplayName
private String deviceDisplayName
A string that will allow the user to identify what device owns this pusher.
-
profileTag
private String profileTag
This string determines which set of device specific rules this pusher executes.
-
lang
private String lang
The preferred language for receiving notifications (e.g. 'en' or 'en-US')
-
data
private PusherData data
A dictionary of information for the pusher implementation itself.
-
-
Method Detail
-
getPushkey
public String getPushkey()
-
setPushkey
public void setPushkey(String pushkey)
-
getKind
public String getKind()
-
setKind
public void setKind(String kind)
-
getAppId
public String getAppId()
-
setAppId
public void setAppId(String appId)
-
getAppDisplayName
public String getAppDisplayName()
-
setAppDisplayName
public void setAppDisplayName(String appDisplayName)
-
getDeviceDisplayName
public String getDeviceDisplayName()
-
setDeviceDisplayName
public void setDeviceDisplayName(String deviceDisplayName)
-
getProfileTag
public String getProfileTag()
-
setProfileTag
public void setProfileTag(String profileTag)
-
getLang
public String getLang()
-
setLang
public void setLang(String lang)
-
getData
public PusherData getData()
-
setData
public void setData(PusherData data)
-
-