com.pengrad.telegrambot.model.business.BusinessOpeningHours Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
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