Module ch.rasc.jcentserverclient
Package ch.rasc.jcentserverclient.models
Record Class BroadcastRequest
java.lang.Object
java.lang.Record
ch.rasc.jcentserverclient.models.BroadcastRequest
public record BroadcastRequest(List<String> channels, Object data, String b64data, Boolean skipHistory, Map<String,String> tags, String idempotencyKey, Boolean delta)
extends Record
Request for broadcasting data to multiple channels.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionb64data()Returns the value of theb64datarecord component.static BroadcastRequest.Builderbuilder()channels()Returns the value of thechannelsrecord component.data()Returns the value of thedatarecord component.delta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidempotencyKeyrecord component.Returns the value of theskipHistoryrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BroadcastRequest
public BroadcastRequest(List<String> channels, Object data, String b64data, Boolean skipHistory, Map<String, String> tags, String idempotencyKey, Boolean delta) Creates an instance of aBroadcastRequestrecord class.- Parameters:
channels- the value for thechannelsrecord componentdata- the value for thedatarecord componentb64data- the value for theb64datarecord componentskipHistory- the value for theskipHistoryrecord componenttags- the value for thetagsrecord componentidempotencyKey- the value for theidempotencyKeyrecord componentdelta- the value for thedeltarecord component
-
-
Method Details
-
builder
-
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. -
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. -
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). -
channels
Returns the value of thechannelsrecord component.- Returns:
- the value of the
channelsrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
b64data
Returns the value of theb64datarecord component.- Returns:
- the value of the
b64datarecord component
-
skipHistory
Returns the value of theskipHistoryrecord component.- Returns:
- the value of the
skipHistoryrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
idempotencyKey
Returns the value of theidempotencyKeyrecord component.- Returns:
- the value of the
idempotencyKeyrecord component
-
delta
Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-