
com.vk.api.sdk.objects.polls.Background Maven / Gradle / Ivy
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.objects.polls;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.objects.Validable;
import com.vk.api.sdk.objects.base.GradientPoint;
import com.vk.api.sdk.objects.base.Image;
import java.util.List;
import java.util.Objects;
/**
* Background object
*/
public class Background implements Validable {
/**
* Gradient angle with 0 on positive X axis
*/
@SerializedName("angle")
private Integer angle;
/**
* Hex color code without #
*/
@SerializedName("color")
private String color;
/**
* Original height of pattern tile
*/
@SerializedName("height")
private Integer height;
@SerializedName("id")
private Integer id;
@SerializedName("name")
private String name;
/**
* Pattern tiles
*/
@SerializedName("images")
private List images;
/**
* Gradient points
*/
@SerializedName("points")
private List points;
@SerializedName("type")
private BackgroundType type;
/**
* Original with of pattern tile
*/
@SerializedName("width")
private Integer width;
public Integer getAngle() {
return angle;
}
public Background setAngle(Integer angle) {
this.angle = angle;
return this;
}
public String getColor() {
return color;
}
public Background setColor(String color) {
this.color = color;
return this;
}
public Integer getHeight() {
return height;
}
public Background setHeight(Integer height) {
this.height = height;
return this;
}
public Integer getId() {
return id;
}
public Background setId(Integer id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public Background setName(String name) {
this.name = name;
return this;
}
public List getImages() {
return images;
}
public Background setImages(List images) {
this.images = images;
return this;
}
public List getPoints() {
return points;
}
public Background setPoints(List points) {
this.points = points;
return this;
}
public BackgroundType getType() {
return type;
}
public Background setType(BackgroundType type) {
this.type = type;
return this;
}
public Integer getWidth() {
return width;
}
public Background setWidth(Integer width) {
this.width = width;
return this;
}
@Override
public int hashCode() {
return Objects.hash(images, color, name, width, angle, id, type, height, points);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Background background = (Background) o;
return Objects.equals(images, background.images) &&
Objects.equals(color, background.color) &&
Objects.equals(name, background.name) &&
Objects.equals(width, background.width) &&
Objects.equals(angle, background.angle) &&
Objects.equals(id, background.id) &&
Objects.equals(type, background.type) &&
Objects.equals(height, background.height) &&
Objects.equals(points, background.points);
}
@Override
public String toString() {
final Gson gson = new Gson();
return gson.toJson(this);
}
public String toPrettyString() {
final StringBuilder sb = new StringBuilder("Background{");
sb.append("images=").append(images);
sb.append(", color='").append(color).append("'");
sb.append(", name='").append(name).append("'");
sb.append(", width=").append(width);
sb.append(", angle=").append(angle);
sb.append(", id=").append(id);
sb.append(", type='").append(type).append("'");
sb.append(", height=").append(height);
sb.append(", points=").append(points);
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy