Record Class MatrixPusher
java.lang.Object
java.lang.Record
io.meeds.chat.model.MatrixPusher
- Record Components:
appId- the application id,exo.matrix.agentfor a digital worker's pusherpushkey- the key Synapse sends back to the gateway with each pushkind-http, or null to delete the pusherappDisplayName- the application name shown in the account's pushersdeviceDisplayName- the device name shown in the account's pushersprofileTag- the profile tag, the platform login for a worker's pusherlang- the language of the pushed notificationsurl- the push gateway url, whose path Synapse requires to be/_matrix/push/v1/notify
public record MatrixPusher(String appId, String pushkey, String kind, String appDisplayName, String deviceDisplayName, String profileTag, String lang, String url)
extends Record
An HTTP pusher of a Matrix account, as the client API lists and sets it
(
/_matrix/client/v3/pushers). Synapse keys a pusher on the pair
(appId, pushkey): setting the same pair again replaces it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappDisplayNamerecord component.appId()Returns the value of theappIdrecord component.Returns the value of thedeviceDisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.lang()Returns the value of thelangrecord component.Returns the value of theprofileTagrecord component.pushkey()Returns the value of thepushkeyrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
MatrixPusher
public MatrixPusher(String appId, String pushkey, String kind, String appDisplayName, String deviceDisplayName, String profileTag, String lang, String url) Creates an instance of aMatrixPusherrecord class.- Parameters:
appId- the value for theappIdrecord componentpushkey- the value for thepushkeyrecord componentkind- the value for thekindrecord componentappDisplayName- the value for theappDisplayNamerecord componentdeviceDisplayName- the value for thedeviceDisplayNamerecord componentprofileTag- the value for theprofileTagrecord componentlang- the value for thelangrecord componenturl- the value for theurlrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
appId
-
pushkey
-
kind
-
appDisplayName
Returns the value of theappDisplayNamerecord component.- Returns:
- the value of the
appDisplayNamerecord component
-
deviceDisplayName
Returns the value of thedeviceDisplayNamerecord component.- Returns:
- the value of the
deviceDisplayNamerecord component
-
profileTag
Returns the value of theprofileTagrecord component.- Returns:
- the value of the
profileTagrecord component
-
lang
-
url
-