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 String
appDisplayName
A string that will allow the user to identify what application owns this pusher.private String
appId
This is a reverse-DNS style identifier for the application.private PusherData
data
A dictionary of information for the pusher implementation itself.private String
deviceDisplayName
A string that will allow the user to identify what device owns this pusher.private String
kind
The kind of pusher.private String
lang
The preferred language for receiving notifications (e.g.private String
profileTag
This string determines which set of device specific rules this pusher executes.private String
pushkey
This is a unique identifier for this pusher.
-
Constructor Summary
Constructors Constructor Description Pusher()
-
Method Summary
Modifier and Type Method Description String
getAppDisplayName()
String
getAppId()
PusherData
getData()
String
getDeviceDisplayName()
String
getKind()
String
getLang()
String
getProfileTag()
String
getPushkey()
void
setAppDisplayName(String appDisplayName)
void
setAppId(String appId)
void
setData(PusherData data)
void
setDeviceDisplayName(String deviceDisplayName)
void
setKind(String kind)
void
setLang(String lang)
void
setProfileTag(String profileTag)
void
setPushkey(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)
-
-