update dummyObjects

This commit is contained in:
Felix 2017-04-21 19:45:57 +02:00
parent f1b55d9476
commit 06fcb2831a
4 changed files with 15 additions and 9 deletions

View file

@ -92,6 +92,10 @@ public class LiveConference {
LiveConference dummyCon = new LiveConference("DummyCon", "Conference McConferenceface"); LiveConference dummyCon = new LiveConference("DummyCon", "Conference McConferenceface");
dummyCon.setGroups(new ArrayList<>()); dummyCon.setGroups(new ArrayList<>());
dummyCon.getGroups().add(Group.getDummyObject()); dummyCon.getGroups().add(Group.getDummyObject());
dummyCon.setSlug("duco");
dummyCon.setAuthor("");
dummyCon.setDescription("A placeholder conference");
dummyCon.setKeywords("");
return dummyCon; return dummyCon;
} }
} }

View file

@ -104,11 +104,13 @@ public class Room implements Parcelable {
public static Room getDummyObject(){ public static Room getDummyObject(){
Room dummy = new Room(); Room dummy = new Room();
dummy.setStreams(new ArrayList<>());
dummy.getStreams().add(Stream.getDummyObject());
dummy.setDisplay("Dummy Room");
dummy.setSlug("dummy_room"); dummy.setSlug("dummy_room");
dummy.setShedulename("Dummy Room"); dummy.setShedulename("Dummy Room");
dummy.setThumb("https://static.media.ccc.de/media/unknown.png");
dummy.setLink("");
dummy.setDisplay("Dummy Room");
dummy.setStreams(new ArrayList<>());
dummy.getStreams().add(Stream.getDummyObject());
return dummy; return dummy;
} }
} }

View file

@ -104,13 +104,13 @@ public class Stream implements Parcelable {
public static Stream getDummyObject(){ public static Stream getDummyObject(){
Stream dummy = new Stream(); Stream dummy = new Stream();
dummy.setDisplay("Dummy");
dummy.setSlug("dummy"); dummy.setSlug("dummy");
dummy.setDisplay("Dummy");
dummy.setType("video");
dummy.setTranslated(false); dummy.setTranslated(false);
HashMap<String, StreamUrl> streamMap = new HashMap<>();
streamMap.put("dummy",StreamUrl.getDummyObject());
dummy.setUrls(streamMap);
dummy.setVideoSize(new int[]{1, 1}); dummy.setVideoSize(new int[]{1, 1});
dummy.setUrls(new HashMap<>());
dummy.getUrls().put("hls",StreamUrl.getDummyObject());
dummy.setType("dummy"); dummy.setType("dummy");
return dummy; return dummy;
} }

View file

@ -80,8 +80,8 @@ public class StreamUrl implements Parcelable {
public static StreamUrl getDummyObject(){ public static StreamUrl getDummyObject(){
StreamUrl dummy = new StreamUrl(); StreamUrl dummy = new StreamUrl();
dummy.setUrl("https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8"); dummy.setUrl("https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8");
dummy.setTech("dummy"); dummy.setTech("");
dummy.setDisplay("DummyStream"); dummy.setDisplay("HLS");
return dummy; return dummy;
} }
} }