
com.vk.api.sdk.objects.wall.responses.GetCommentExtendedResponse 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.wall.responses;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.objects.Validable;
import com.vk.api.sdk.objects.annotations.Required;
import com.vk.api.sdk.objects.groups.GroupFull;
import com.vk.api.sdk.objects.users.UserFull;
import com.vk.api.sdk.objects.wall.WallComment;
import java.util.List;
import java.util.Objects;
/**
* GetCommentExtendedResponse object
*/
public class GetCommentExtendedResponse implements Validable {
/**
* Information whether current user can comment the post
*/
@SerializedName("can_post")
private Boolean canPost;
@SerializedName("groups")
@Required
private List groups;
/**
* Information whether groups can comment the post
*/
@SerializedName("groups_can_post")
private Boolean groupsCanPost;
@SerializedName("items")
@Required
private List items;
/**
* Author id of the comment's post
* Entity: owner
*/
@SerializedName("post_author_id")
private Long postAuthorId;
@SerializedName("profiles")
@Required
private List profiles;
@SerializedName("show_reply_button")
private Boolean showReplyButton;
public Boolean getCanPost() {
return canPost;
}
public GetCommentExtendedResponse setCanPost(Boolean canPost) {
this.canPost = canPost;
return this;
}
public List getGroups() {
return groups;
}
public GetCommentExtendedResponse setGroups(List groups) {
this.groups = groups;
return this;
}
public Boolean getGroupsCanPost() {
return groupsCanPost;
}
public GetCommentExtendedResponse setGroupsCanPost(Boolean groupsCanPost) {
this.groupsCanPost = groupsCanPost;
return this;
}
public List getItems() {
return items;
}
public GetCommentExtendedResponse setItems(List items) {
this.items = items;
return this;
}
public Long getPostAuthorId() {
return postAuthorId;
}
public GetCommentExtendedResponse setPostAuthorId(Long postAuthorId) {
this.postAuthorId = postAuthorId;
return this;
}
public List getProfiles() {
return profiles;
}
public GetCommentExtendedResponse setProfiles(List profiles) {
this.profiles = profiles;
return this;
}
public Boolean getShowReplyButton() {
return showReplyButton;
}
public GetCommentExtendedResponse setShowReplyButton(Boolean showReplyButton) {
this.showReplyButton = showReplyButton;
return this;
}
@Override
public int hashCode() {
return Objects.hash(postAuthorId, canPost, profiles, groups, groupsCanPost, items, showReplyButton);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
GetCommentExtendedResponse getCommentExtendedResponse = (GetCommentExtendedResponse) o;
return Objects.equals(groupsCanPost, getCommentExtendedResponse.groupsCanPost) &&
Objects.equals(profiles, getCommentExtendedResponse.profiles) &&
Objects.equals(groups, getCommentExtendedResponse.groups) &&
Objects.equals(canPost, getCommentExtendedResponse.canPost) &&
Objects.equals(postAuthorId, getCommentExtendedResponse.postAuthorId) &&
Objects.equals(showReplyButton, getCommentExtendedResponse.showReplyButton) &&
Objects.equals(items, getCommentExtendedResponse.items);
}
@Override
public String toString() {
final Gson gson = new Gson();
return gson.toJson(this);
}
public String toPrettyString() {
final StringBuilder sb = new StringBuilder("GetCommentExtendedResponse{");
sb.append("groupsCanPost=").append(groupsCanPost);
sb.append(", profiles=").append(profiles);
sb.append(", groups=").append(groups);
sb.append(", canPost=").append(canPost);
sb.append(", postAuthorId=").append(postAuthorId);
sb.append(", showReplyButton=").append(showReplyButton);
sb.append(", items=").append(items);
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy