Skip to content
Snippets Groups Projects

Resolve "As a child, I want an interesting and exciting story based trail with obvious landmarks, so I can follow the trail with ease."

Files
13
package Team5.SmartTowns.Landmarks;
package Team5.SmartTowns.Landmarks;
 
import Team5.SmartTowns.trails.Trail;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Data;
 
import lombok.NoArgsConstructor;
 
 
import java.util.List;
 
@Data
@Data
@AllArgsConstructor
@AllArgsConstructor
 
@NoArgsConstructor
public class Landmarks {
public class Landmarks {
 
 
// Intialised object to getID from trail.
 
 
//Predefined Landmark for Dragons Tale.
 
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")
 
);
 
 
private Integer trailID;
 
private int landmarkID;
@NotEmpty(message = "You must type in a username.")
@NotEmpty(message = "You must type in a username.")
private String landmarkName;
private String landmarkName;
@Email(message = "You must attach a contact address.")
@Email(message = "You must attach a contact address.")
private String landmarkEmail;
private String landmarkEmail;
private String landmarkDescription;
private String landmarkDescription;
private String landmarkLocation;
private String landmarkLocation;
private Integer trailID;
private String landmarkPicture;
public Landmarks(){
// Constructor for List above.
this.landmarkName ="";
public Landmarks( int landmarkID, String landmarkName, String landmarkDescription, String landmarkLocation) {
this.landmarkEmail="";
this.landmarkID = landmarkID;
this.landmarkDescription ="";
this.landmarkName = landmarkName;
this.landmarkLocation ="";
this.landmarkDescription = landmarkDescription;
this.trailID =0;
this.landmarkLocation = landmarkLocation; }
}
}
}
Loading