All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pengrad.telegrambot.model.business.BusinessOpeningHours Maven / Gradle / Ivy

There is a newer version: 7.11.0
Show newest version
package com.pengrad.telegrambot.model.business;

import java.util.Arrays;
import java.util.Objects;

public class BusinessOpeningHours {

    private String time_zone_name;
    private BusinessOpeningHoursInterval[] opening_hours;

    public String timeZoneName() {
        return time_zone_name;
    }

    public BusinessOpeningHoursInterval[] openingHours() {
        return opening_hours;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof BusinessOpeningHours)) return false;
        BusinessOpeningHours that = (BusinessOpeningHours) o;
        return Objects.equals(time_zone_name, that.time_zone_name) && Arrays.equals(opening_hours, that.opening_hours);
    }

    @Override
    public int hashCode() {
        int result = Objects.hash(time_zone_name);
        result = 31 * result + Arrays.hashCode(opening_hours);
        return result;
    }

    @Override
    public String toString() {
        return "BusinessOpeningHours{" +
            "time_zone_name='" + time_zone_name + '\'' +
            ", opening_hours=" + Arrays.toString(opening_hours) +
            '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy