Record Class ControlRequest
java.lang.Object
java.lang.Record
lol.trq.orpheus.source.ControlRequest
- Record Components:
sessionId- the target sessioncontrol- the commandpositionMillis- the target forControl.SEEKvalue- the target forControl.RATEandControl.VOLUMEon- the target forControl.SHUFFLEandControl.MUTErepeat- the target forControl.REPEAT
-
Constructor Summary
ConstructorsConstructorDescriptionControlRequest(String sessionId, Control control, long positionMillis, double value, boolean on, Repeat repeat) Creates an instance of aControlRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontrol()Returns the value of thecontrolrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static ControlRequestbooleanon()Returns the value of theonrecord component.longReturns the value of thepositionMillisrecord component.repeat()Returns the value of therepeatrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.doublevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
ControlRequest
public ControlRequest(String sessionId, Control control, long positionMillis, double value, boolean on, Repeat repeat) Creates an instance of aControlRequestrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentcontrol- the value for thecontrolrecord componentpositionMillis- the value for thepositionMillisrecord componentvalue- the value for thevaluerecord componenton- the value for theonrecord componentrepeat- the value for therepeatrecord component
-
-
Method Details
-
of
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sessionId
-
control
-
positionMillis
public long positionMillis()Returns the value of thepositionMillisrecord component.- Returns:
- the value of the
positionMillisrecord component
-
value
-
on
-
repeat
-