PlayerAndroid/app/src/main/java/code/name/monkey/retromusic/activities/bugreport/model/Report.java

35 lines
778 B
Java
Raw Normal View History

2019-04-20 05:29:45 +00:00
package code.name.monkey.retromusic.activities.bugreport.model;
2018-12-06 10:23:03 +00:00
2019-04-20 05:29:45 +00:00
import code.name.monkey.retromusic.activities.bugreport.model.github.ExtraInfo;
2018-12-06 10:23:03 +00:00
public class Report {
2020-10-06 08:46:04 +00:00
private final String description;
2018-12-06 10:23:03 +00:00
2020-10-06 08:46:04 +00:00
private final DeviceInfo deviceInfo;
2018-12-06 10:23:03 +00:00
2020-10-06 08:46:04 +00:00
private final ExtraInfo extraInfo;
2018-12-06 10:23:03 +00:00
2020-10-06 08:46:04 +00:00
private final String title;
2019-12-30 11:01:50 +00:00
2020-10-06 08:46:04 +00:00
public Report(String title, String description, DeviceInfo deviceInfo, ExtraInfo extraInfo) {
this.title = title;
this.description = description;
this.deviceInfo = deviceInfo;
this.extraInfo = extraInfo;
}
2018-12-06 10:23:03 +00:00
2020-10-06 08:46:04 +00:00
public String getDescription() {
return description
+ "\n\n"
+ "-\n\n"
+ deviceInfo.toMarkdown()
+ "\n\n"
+ extraInfo.toMarkdown();
}
2019-12-30 11:01:50 +00:00
2020-10-06 08:46:04 +00:00
public String getTitle() {
return title;
}
2018-12-06 10:23:03 +00:00
}