
com.vk.api.sdk.objects.newsfeed.ItemHolidayRecommendationsBlockHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Java library for VK API interaction, includes OAuth 2.0 authorization and API methods.
The newest version!
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.objects.newsfeed;
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.Image;
import com.vk.api.sdk.objects.base.LinkButtonAction;
import java.util.List;
import java.util.Objects;
/**
* ItemHolidayRecommendationsBlockHeader object
*/
public class ItemHolidayRecommendationsBlockHeader implements Validable {
@SerializedName("action")
private LinkButtonAction action;
@SerializedName("image")
private List image;
/**
* Subtitle of the header
*/
@SerializedName("subtitle")
private String subtitle;
/**
* Title of the header
*/
@SerializedName("title")
private String title;
public LinkButtonAction getAction() {
return action;
}
public ItemHolidayRecommendationsBlockHeader setAction(LinkButtonAction action) {
this.action = action;
return this;
}
public List getImage() {
return image;
}
public ItemHolidayRecommendationsBlockHeader setImage(List image) {
this.image = image;
return this;
}
public String getSubtitle() {
return subtitle;
}
public ItemHolidayRecommendationsBlockHeader setSubtitle(String subtitle) {
this.subtitle = subtitle;
return this;
}
public String getTitle() {
return title;
}
public ItemHolidayRecommendationsBlockHeader setTitle(String title) {
this.title = title;
return this;
}
@Override
public int hashCode() {
return Objects.hash(image, subtitle, action, title);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ItemHolidayRecommendationsBlockHeader itemHolidayRecommendationsBlockHeader = (ItemHolidayRecommendationsBlockHeader) o;
return Objects.equals(image, itemHolidayRecommendationsBlockHeader.image) &&
Objects.equals(subtitle, itemHolidayRecommendationsBlockHeader.subtitle) &&
Objects.equals(action, itemHolidayRecommendationsBlockHeader.action) &&
Objects.equals(title, itemHolidayRecommendationsBlockHeader.title);
}
@Override
public String toString() {
final Gson gson = new Gson();
return gson.toJson(this);
}
public String toPrettyString() {
final StringBuilder sb = new StringBuilder("ItemHolidayRecommendationsBlockHeader{");
sb.append("image=").append(image);
sb.append(", subtitle='").append(subtitle).append("'");
sb.append(", action=").append(action);
sb.append(", title='").append(title).append("'");
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy