-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
package dev.migwel.sts.model; | ||
|
||
public record Song(String artist, String title) {} | ||
/** | ||
* Representation of a song playing "somewhere" | ||
* | ||
* @param artist The artist performing that song | ||
* @param title The title of the number | ||
* @param rawData It can happen that parsing the artist and title can be tricky and what we have is | ||
* raw data of what's playing. We may want this raw data either to save it and parse it manually | ||
* later or for debugging reasons | ||
*/ | ||
public record Song(String artist, String title, String rawData) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters