Android Open Source - Joetz-Android-V2 Booking

From Project

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.

Java Source Code

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 {
    private long id;

    private long campId;

    private DateTime dateOfRegistration;

    private List<String> persons;

    private BookingStatus status;

    public long getUnixDateOfRegistration(){
        return UnixDateTimeConverter.getUnix(dateOfRegistration);

    public void setUnixDateOfRegistration(long unix){
        dateOfRegistration = UnixDateTimeConverter.getDate(unix);

    public long getId() {
        return id;

    public void setId(long 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;

Java Source Code List