Record Class SessionInfo
java.lang.Object
java.lang.Record
lol.trq.orpheus.SessionInfo
- Record Components:
sourceId- the sourcesessionId- the session inside the sourceapp- the applicationstate- the playback statevisible- whether the app rules let this session through
public record SessionInfo(String sourceId, String sessionId, SourceApp app, PlaybackState state, boolean visible)
extends Record
One session known to the library, for pickers and "allow this app" prompts. Hidden sessions carry no track data.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionInfo(String sourceId, String sessionId, SourceApp app, PlaybackState state, boolean visible) Creates an instance of aSessionInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionapp()Returns the value of theapprecord 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 thesessionIdrecord component.sourceId()Returns the value of thesourceIdrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.booleanvisible()Returns the value of thevisiblerecord component.
-
Constructor Details
-
SessionInfo
public SessionInfo(String sourceId, String sessionId, SourceApp app, PlaybackState state, boolean visible) Creates an instance of aSessionInforecord class.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sourceId
-
sessionId
-
app
-
state
-
visible
-