package com.bonus.canteen.core.device.manage.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

import java.time.LocalDateTime;

public class DeviceSendMenuTimeDTO {
   @JsonDeserialize(
      using = LocalDateTimeDeserializer.class
   )
   @JsonSerialize(
      using = LocalDateTimeSerializer.class
   )
   private LocalDateTime localDateTimeMenu;

   public LocalDateTime getLocalDateTimeMenu() {
      return this.localDateTimeMenu;
   }

   @JsonDeserialize(
      using = LocalDateTimeDeserializer.class
   )
   public DeviceSendMenuTimeDTO setLocalDateTimeMenu(final LocalDateTime localDateTimeMenu) {
      this.localDateTimeMenu = localDateTimeMenu;
      return this;
   }

}
