Family-Map-Project / FamilyMapServer / FamilyMapServerStudent-master / shared / src / result / EventResult.java
EventResult.java
Raw
package result;

/**
 * Result obtained from attempting to retrieve an event with the specified ID
 */
public class EventResult
{
    private String associatedUsername;
    private String eventID;
    private String personID;
    private float latitude;
    private float longitude;
    private String country;
    private String city;
    private String eventType;
    private int year;
    private String message;
    private boolean success;

    /**
     * Parameterized constructor for an eventResult
     * @param associatedUsername
     * @param eventID
     * @param personID
     * @param latitude
     * @param longitude
     * @param country
     * @param city
     * @param eventType
     * @param year
     * @param message
     * @param success
     */
    public EventResult(String associatedUsername, String eventID, String personID,
                       float latitude, float longitude, String country, String city,
                       String eventType, int year, String message, boolean success)
    {
        this.associatedUsername = associatedUsername;
        this.eventID = eventID;
        this.personID = personID;
        this.latitude = latitude;
        this.longitude = longitude;
        this.country = country;
        this.city = city;
        this.eventType = eventType;
        this.year = year;
        this.message = message;
        this.success = success;
    }

    public EventResult() {}

    public void setAssociatedUsername(String associatedUsername)
    {
        this.associatedUsername = associatedUsername;
    }

    public String getAssociatedUsername()
    {
        return associatedUsername;
    }

    public void setEventID(String eventID)
    {
        this.eventID = eventID;
    }

    public String getEventID()
    {
        return eventID;
    }

    public void setPersonID(String personID)
    {
        this.personID = personID;
    }

    public String getPersonID()
    {
        return personID;
    }

    public void setLatitude(float latitude)
    {
        this.latitude = latitude;
    }

    public float getLatitude()
    {
        return latitude;
    }

    public void setLongitude(float longitude)
    {
        this.longitude = longitude;
    }

    public float getLongitude()
    {
        return longitude;
    }

    public void setCountry(String country)
    {
        this.country = country;
    }

    public String getCountry()
    {
        return country;
    }

    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCity()
    {
        return city;
    }

    public void setEventType(String eventType)
    {
        this.eventType = eventType;
    }

    public String getEventType()
    {
        return eventType;
    }

    public void setYear(int year)
    {
        this.year = year;
    }

    public int getYear()
    {
        return year;
    }

    public void setMessage(String message)
    {
        this.message = message;
    }

    public String getMessage()
    {
        return message;
    }

    public void setSuccess(boolean success)
    {
        this.success = success;
    }

    public boolean isSuccess()
    {
        return success;
    }
}