Record Class MatrixPusher

java.lang.Object
java.lang.Record
io.meeds.chat.model.MatrixPusher
Record Components:
appId - the application id, exo.matrix.agent for a digital worker's pusher
pushkey - the key Synapse sends back to the gateway with each push
kind - http, or null to delete the pusher
appDisplayName - the application name shown in the account's pushers
deviceDisplayName - the device name shown in the account's pushers
profileTag - the profile tag, the platform login for a worker's pusher
lang - the language of the pushed notifications
url - 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 Details

    • MatrixPusher

      public MatrixPusher(String appId, String pushkey, String kind, String appDisplayName, String deviceDisplayName, String profileTag, String lang, String url)
      Creates an instance of a MatrixPusher record class.
      Parameters:
      appId - the value for the appId record component
      pushkey - the value for the pushkey record component
      kind - the value for the kind record component
      appDisplayName - the value for the appDisplayName record component
      deviceDisplayName - the value for the deviceDisplayName record component
      profileTag - the value for the profileTag record component
      lang - the value for the lang record component
      url - the value for the url record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • appId

      public String appId()
      Returns the value of the appId record component.
      Returns:
      the value of the appId record component
    • pushkey

      public String pushkey()
      Returns the value of the pushkey record component.
      Returns:
      the value of the pushkey record component
    • kind

      public String kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • appDisplayName

      public String appDisplayName()
      Returns the value of the appDisplayName record component.
      Returns:
      the value of the appDisplayName record component
    • deviceDisplayName

      public String deviceDisplayName()
      Returns the value of the deviceDisplayName record component.
      Returns:
      the value of the deviceDisplayName record component
    • profileTag

      public String profileTag()
      Returns the value of the profileTag record component.
      Returns:
      the value of the profileTag record component
    • lang

      public String lang()
      Returns the value of the lang record component.
      Returns:
      the value of the lang record component
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component