Back to project page Joetz-Android-V2.
The source code is released under:
GNU General Public License
If you think the Android project Joetz-Android-V2 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.jens.myapplication.domain; //from w w w . j a v a 2 s .c o m import com.example.jens.myapplication.domain.converter.UnixDateTimeConverter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import org.joda.time.DateTime; import java.util.List; /** * Created by Sam on 5/12/2014. */ @JsonIgnoreProperties(ignoreUnknown = true) public class Booking { @JsonProperty("BookingId") private long id; @JsonProperty("CampId") private long campId; @JsonIgnore private DateTime dateOfRegistration; @JsonProperty("Persons") private List<String> persons; @JsonProperty("Status") private BookingStatus status; @JsonProperty("DateOfRegistration") public long getUnixDateOfRegistration(){ return UnixDateTimeConverter.getUnix(dateOfRegistration); } @JsonProperty("DateOfRegistration") public void setUnixDateOfRegistration(long unix){ dateOfRegistration = UnixDateTimeConverter.getDate(unix); } public long getId() { return id; } public void setId(long id) { this.id = id; } public long getCampId() { return campId; } public void setCampId(long campId) { this.campId = campId; } public DateTime getDateOfRegistration() { return dateOfRegistration; } public void setDateOfRegistration(DateTime dateOfRegistration) { this.dateOfRegistration = dateOfRegistration; } public List<String> getPersons() { return persons; } public void setPersons(List<String> persons) { this.persons = persons; } public BookingStatus getStatus() { return status; } public void setStatus(BookingStatus status) { this.status = status; } }