
com.vk.api.sdk.objects.groups.UserXtrRole 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.
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.objects.groups;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.objects.Validable;
import com.vk.api.sdk.objects.users.UserFull;
import java.util.List;
import java.util.Objects;
/**
* UserXtrRole object
*/
public class UserXtrRole extends UserFull implements Validable {
@SerializedName("permissions")
private List permissions;
@SerializedName("role")
private RoleOptions role;
public List getPermissions() {
return permissions;
}
public UserXtrRole setPermissions(List permissions) {
this.permissions = permissions;
return this;
}
public RoleOptions getRole() {
return role;
}
public UserXtrRole setRole(RoleOptions role) {
this.role = role;
return this;
}
@Override
public int hashCode() {
return Objects.hash(role, permissions);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UserXtrRole userXtrRole = (UserXtrRole) o;
return Objects.equals(role, userXtrRole.role) &&
Objects.equals(permissions, userXtrRole.permissions);
}
@Override
public String toString() {
final Gson gson = new Gson();
return gson.toJson(this);
}
public String toPrettyString() {
final StringBuilder sb = new StringBuilder("UserXtrRole{");
sb.append("role=").append(role);
sb.append(", permissions=").append(permissions);
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy