- git (re)init (git structure was corrupted)
- added shuffler and repeat mode - xxxhdpi icons - typos - new styles - not fully working playing queue [alpha]
This commit is contained in:
commit
32f76f5418
277 changed files with 20259 additions and 0 deletions
|
|
@ -0,0 +1,32 @@
|
|||
package com.kabouzeid.materialmusic.model;
|
||||
|
||||
/**
|
||||
* Created by karim on 22.11.14.
|
||||
*/
|
||||
public class Album {
|
||||
|
||||
public int id;
|
||||
public int artistId;
|
||||
public String title;
|
||||
public String artistName;
|
||||
public int songCount;
|
||||
public int year;
|
||||
|
||||
public Album(final int id, final String title, final String artistName, final int artistId,
|
||||
final int songNumber, final int albumYear) {
|
||||
this.id = id;
|
||||
this.title = title;
|
||||
this.artistName = artistName;
|
||||
this.artistId = artistId;
|
||||
songCount = songNumber;
|
||||
year = albumYear;
|
||||
}
|
||||
|
||||
public Album() {
|
||||
this.id = -1;
|
||||
this.title = "";
|
||||
this.artistName = "";
|
||||
songCount = -1;
|
||||
year = -1;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.kabouzeid.materialmusic.model;
|
||||
|
||||
/**
|
||||
* Created by karim on 29.12.14.
|
||||
*/
|
||||
public class Artist {
|
||||
public int id;
|
||||
public String name;
|
||||
public int albumCount;
|
||||
public int songCount;
|
||||
|
||||
public Artist(final int id, final String name, final int songCount,
|
||||
final int albumCount) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.songCount = songCount;
|
||||
this.albumCount = albumCount;
|
||||
}
|
||||
|
||||
public Artist() {
|
||||
id = -1;
|
||||
name = "";
|
||||
songCount = -1;
|
||||
albumCount = -1;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package com.kabouzeid.materialmusic.model;
|
||||
|
||||
/**
|
||||
* Created by karim on 19.12.14.
|
||||
*/
|
||||
public class MusicRemoteEvent {
|
||||
public static final int PLAY = 0;
|
||||
public static final int PAUSE = 1;
|
||||
public static final int RESUME = 2;
|
||||
public static final int STOP = 3;
|
||||
public static final int NEXT = 4;
|
||||
public static final int PREV = 5;
|
||||
|
||||
public static final int SONG_COMPLETED = 6;
|
||||
public static final int QUEUE_COMPLETED = 7;
|
||||
|
||||
public static final int SERVICE_CONNECTED = 8;
|
||||
public static final int SERVICE_DISCONNECTED = 9;
|
||||
|
||||
public static final int STATE_SAVED = 10;
|
||||
public static final int STATE_RESTORED = 11;
|
||||
|
||||
public static final int SHUFFLE_MODE_CHANGED = 12;
|
||||
public static final int REPEAT_MODE_CHANGED = 13;
|
||||
|
||||
private int action;
|
||||
|
||||
public MusicRemoteEvent(int action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public int getAction() {
|
||||
return action;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package com.kabouzeid.materialmusic.model;
|
||||
|
||||
/**
|
||||
* Created by karim on 23.11.14.
|
||||
*/
|
||||
public class NavigationDrawerItem {
|
||||
public String title;
|
||||
public int imageRes;
|
||||
|
||||
public NavigationDrawerItem(String title, int imageRes) {
|
||||
this.title = title;
|
||||
this.imageRes = imageRes;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.kabouzeid.materialmusic.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by karim on 23.11.14.
|
||||
*/
|
||||
public class Song implements Serializable {
|
||||
public int id;
|
||||
public int albumId;
|
||||
public int artistId;
|
||||
public String title;
|
||||
public String artistName;
|
||||
public String albumName;
|
||||
public long duration;
|
||||
public int trackNumber;
|
||||
|
||||
public Song(final int id, final int albumId, final int artistId, final String title, final String artistName,
|
||||
final String albumName, final long duration, final int trackNumber) {
|
||||
this.id = id;
|
||||
this.albumId = albumId;
|
||||
this.artistId = artistId;
|
||||
this.title = title;
|
||||
this.artistName = artistName;
|
||||
this.albumName = albumName;
|
||||
this.duration = duration;
|
||||
this.trackNumber = trackNumber;
|
||||
}
|
||||
|
||||
public Song() {
|
||||
this.id = -1;
|
||||
this.albumId = -1;
|
||||
this.artistId = -1;
|
||||
this.title = "";
|
||||
this.artistName = "";
|
||||
this.albumName = "";
|
||||
this.duration = -1;
|
||||
this.trackNumber = -1;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue