Skip to content
Snippets Groups Projects

Extention Merge 1.

Closed Connor Brock requested to merge d1656298/client-project:Extension into main
15 files
+ 281
142
Compare changes
  • Side-by-side
  • Inline
Files
15
@@ -8,18 +8,18 @@ import java.util.List;
@Data
public class DragonsTale {
Landmarks landmarks = new Landmarks();
private int landmarkID;
private String landmarkName;
private String landmarkDescription;
private String imgPath;
private String qrCodeURL;
//As there were already landmark fields created, I used composition to import them into the class to be used within the file.
private int landmarkID = landmarks.getLandmarkID();
private String landmarkName = landmarks.getLandmarkName();
private String landmarkDescription = landmarks.getLandmarkDescription();
private String getImgPath;
public static List<Landmarks> landmarksDragonstrail = List.of(
new Landmarks( 1, "A scent of...Dragon", "The Dragon has been spotted near by, find the QR code to continue" , "Start your discovery, at the sweet shop."),
new Landmarks( 2, "They've been found!", "Don't let them escape, find the next QR code to continue!", "Location test")
);
public static List<Landmarks> getLandmarksDragonstrail() {
return landmarksDragonstrail;
public DragonsTale(int landmarkID, String landmarkName, String landmarkDescription, String imgPath, String qrCodeURL) {
this.landmarkID = landmarkID;
this.landmarkName = landmarkName;
this.landmarkDescription = landmarkDescription;
this.imgPath = imgPath;
this.qrCodeURL = qrCodeURL;
}
}
Loading