com.pengrad.telegrambot.model.chatbackground.BackgroundFillFreeformGradient 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.chatbackground;
import java.util.Arrays;
public class BackgroundFillFreeformGradient extends BackgroundType {
public static final String TYPE = "freeform_gradient";
private Integer[] colors;
public BackgroundFillFreeformGradient(Integer... colors) {
super(TYPE);
this.colors = colors;
}
public Integer[] colors() {
return colors;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
BackgroundFillFreeformGradient that = (BackgroundFillFreeformGradient) o;
return Arrays.equals(colors, that.colors);
}
@Override
public int hashCode() {
return Arrays.hashCode(colors);
}
@Override
public String toString() {
return "BackgroundFillFreeformGradient{" +
"type='" + type() + '\'' +
", colors=" + Arrays.asList(colors) +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy