All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.escalon.hypermedia.sample.model.event.EventModel Maven / Gradle / Ivy

There is a newer version: 0.4.2
Show newest version
package de.escalon.hypermedia.sample.model.event;

/**
 * Sample Event model bean.
 * Created by dschulten on 11.09.2014.
 */
public class EventModel {
    public final int id;
    public final String performer;
    public final String location;
    public EventStatusType eventStatus;
    public final CreativeWork workPerformed;

    public EventModel(int id, String performer, CreativeWork workPerformed, String location, EventStatusType eventStatus) {
        this.id = id;
        this.performer = performer;
        this.workPerformed = workPerformed;
        this.location = location;
        this.eventStatus = eventStatus;
    }

    public EventModel withEventStatus(EventStatusType eventStatus) {
        return new EventModel(this.id, this.performer, this.workPerformed, this.location, eventStatus);
    }

    public EventModel withEventId(int id) {
        return new EventModel(id, this.performer, this.workPerformed, this.location, this.eventStatus);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy