
com.vk.api.sdk.objects.video.responses.EditResponse 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.video.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.base.BoolInt;
import java.util.Objects;
/**
* EditResponse object
*/
public class EditResponse implements Validable {
/**
* Access key for access link
*/
@SerializedName("access_key")
private String accessKey;
@SerializedName("success")
@Required
private BoolInt success;
public String getAccessKey() {
return accessKey;
}
public EditResponse setAccessKey(String accessKey) {
this.accessKey = accessKey;
return this;
}
public boolean isSuccess() {
return success == BoolInt.YES;
}
public BoolInt getSuccess() {
return success;
}
@Override
public int hashCode() {
return Objects.hash(accessKey, success);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EditResponse editResponse = (EditResponse) o;
return Objects.equals(success, editResponse.success) &&
Objects.equals(accessKey, editResponse.accessKey);
}
@Override
public String toString() {
final Gson gson = new Gson();
return gson.toJson(this);
}
public String toPrettyString() {
final StringBuilder sb = new StringBuilder("EditResponse{");
sb.append("success=").append(success);
sb.append(", accessKey='").append(accessKey).append("'");
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy