travel.izi.api.model.entity.Schedule Maven / Gradle / Ivy
/*
* Copyright (C) 2014 IZITEQ B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package travel.izi.api.model.entity;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import com.google.auto.value.AutoValue;
import javax.annotation.Nullable;
import java.io.Serializable;
import java.util.List;
/**
* Schedule details.
*/
@SuppressWarnings("unused")
@AutoValue
@JsonDeserialize(builder = AutoValue_Schedule.Builder.class)
public abstract class Schedule implements Serializable {
public static Builder builder() {
return new AutoValue_Schedule.Builder();
}
/**
* Monday working hours.
*/
@Nullable
public abstract List mon();
/**
* Tuesday working hours.
*/
@Nullable
public abstract List tue();
/**
* Wednesday working hours.
*/
@Nullable
public abstract List wed();
/**
* Thursday working hours.
*/
@Nullable
public abstract List thu();
/**
* Friday working hours.
*/
@Nullable
public abstract List fri();
/**
* Saturday working hours.
*/
@Nullable
public abstract List sat();
/**
* Sunday working hours.
*/
@Nullable
public abstract List sun();
@AutoValue.Builder
@JsonPOJOBuilder(withPrefix = "")
public abstract static class Builder {
public abstract Builder mon(List mon);
public abstract Builder tue(List tue);
public abstract Builder wed(List wed);
public abstract Builder thu(List thu);
public abstract Builder fri(List fri);
public abstract Builder sat(List sat);
public abstract Builder sun(List sun);
public abstract Schedule build();
}
}