package be.fgov.ehealth.standards.kmehr.mycarenet.schema.v1;

import org.taktik.connector.technical.adapter.XmlTimeNoTzAdapter;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.joda.time.DateTime;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(
   name = "",
   propOrder = {"dayperiod", "time"}
)
public class Daytime implements Serializable {
   private static final long serialVersionUID = 1L;
   protected DayperiodType dayperiod;
   @XmlElement(
      type = String.class
   )
   @XmlJavaTypeAdapter(XmlTimeNoTzAdapter.class)
   @XmlSchemaType(
      name = "time"
   )
   protected DateTime time;

   public DayperiodType getDayperiod() {
      return this.dayperiod;
   }

   public void setDayperiod(DayperiodType value) {
      this.dayperiod = value;
   }

   public DateTime getTime() {
      return this.time;
   }

   public void setTime(DateTime value) {
      this.time = value;
   }
}
