Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Klasa wiersza utworu, implemetująca 2 interfejsy z wbudowanych bibliotek Androida
- public class SongRow implements Comparable, Serializable {
- //Id piosenki (z bazy)
- private Integer songId;
- // Wykonawcy tej piosenki, może być 1 lub więcej
- private String artist;
- // Tytuł piosenki
- private String title;
- // Przepływność piosenki
- private String bitRate;
- // Każdy obiekt posiada również pole do zaznaczanie,
- private transient CheckBox checkBox;
- // ścieżka pliku
- private String songPath;
- // jeżeli utwór posiada album, w tym polu zapisane będzie jego id
- private Integer albumId;
- // ilośc odtworzeń piosenki
- private Integer songPlayCount;
- //... konstruktor, oraz settery i gettery
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement