com.vk.api.sdk.objects.UserAuthResponse 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.
package com.vk.api.sdk.objects;
import com.google.gson.annotations.SerializedName;
import java.util.Objects;
public class UserAuthResponse {
@SerializedName("access_token")
private String accessToken;
@SerializedName("user_id")
private Integer userId;
@SerializedName("expires_in")
private Integer expiresIn;
@SerializedName("email")
private String email;
@SerializedName("error")
private String error;
public String getAccessToken() {
return accessToken;
}
public Integer getUserId() {
return userId;
}
public Integer getExpiresIn() {
return expiresIn;
}
public String getEmail() {
return email;
}
public String getError() {
return error;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UserAuthResponse that = (UserAuthResponse) o;
return Objects.equals(accessToken, that.accessToken) &&
Objects.equals(userId, that.userId) &&
Objects.equals(expiresIn, that.expiresIn) &&
Objects.equals(email, that.email) &&
Objects.equals(error, that.error);
}
@Override
public int hashCode() {
return Objects.hash(accessToken, userId, expiresIn, email, error);
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("UserAuthResponse{");
sb.append("accessToken='").append(accessToken).append('\'');
sb.append(", userId=").append(userId);
sb.append(", expiresIn=").append(expiresIn);
sb.append(", email=").append(email);
sb.append(", error='").append(error).append('\'');
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy