com.excilys.sugadroid.beans.AppointmentBeanV5.java Source code

Java tutorial

Introduction

Here is the source code for com.excilys.sugadroid.beans.AppointmentBeanV5.java

Source

/* ============================================================================
 *
 * Copyright 2009 eBusiness Information - Excilys group
 *
 * Author: Pierre-Yves Ricau (py.ricau+sugadroid@gmail.com)
 *
 * Company contact: ebi@ebusinessinformation.fr
 *
 * This file is part of SugaDroid.
 *
 * SugaDroid is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * SugaDroid is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with SugaDroid.  If not, see <http://www.gnu.org/licenses/>.
 * ============================================================================
 */

package com.excilys.sugadroid.beans;

import org.joda.time.LocalDate;
import org.joda.time.LocalDateTime;
import org.joda.time.LocalTime;

/**
 * A bean representing an appointment, as given by SugarCRM v5
 * 
 * @author Pierre-Yves Ricau
 * 
 */
public class AppointmentBeanV5 extends GenericAppointmentBean {

    private static final long serialVersionUID = 1L;

    public void setDateStart(LocalDateTime dateStart) {
        this.dateStart = new LocalDate(dateStart);
        timeStart = new LocalTime(dateStart);
    }

}