com.vk.api.sdk.objects.ClientCredentialsFlowResponse 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!
package com.vk.api.sdk.objects;
import com.google.gson.annotations.SerializedName;
import java.util.Objects;
/**
* Created by tsivarev on 26.07.16.
*/
public class ClientCredentialsFlowResponse {
@SerializedName("access_token")
private String accessToken;
public String getAccessToken() {
return accessToken;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ClientCredentialsFlowResponse that = (ClientCredentialsFlowResponse) o;
return Objects.equals(accessToken, that.accessToken);
}
@Override
public int hashCode() {
return Objects.hash(accessToken);
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("ClientCredentialsFlowResponse{");
sb.append("accessToken='").append(accessToken).append('\'');
sb.append('}');
return sb.toString();
}
}