com.vk.api.sdk.objects.messages.MessageActionPhoto 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.messages;
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 java.net.URI;
import java.util.Objects;
/**
* MessageActionPhoto object
*/
public class MessageActionPhoto implements Validable {
/**
* URL of the preview image with 100px in width
*/
@SerializedName("photo_100")
@Required
private URI photo100;
/**
* URL of the preview image with 200px in width
*/
@SerializedName("photo_200")
@Required
private URI photo200;
/**
* URL of the preview image with 50px in width
*/
@SerializedName("photo_50")
@Required
private URI photo50;
public URI getPhoto100() {
return photo100;
}
public MessageActionPhoto setPhoto100(URI photo100) {
this.photo100 = photo100;
return this;
}
public URI getPhoto200() {
return photo200;
}
public MessageActionPhoto setPhoto200(URI photo200) {
this.photo200 = photo200;
return this;
}
public URI getPhoto50() {
return photo50;
}
public MessageActionPhoto setPhoto50(URI photo50) {
this.photo50 = photo50;
return this;
}
@Override
public int hashCode() {
return Objects.hash(photo100, photo50, photo200);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
MessageActionPhoto messageActionPhoto = (MessageActionPhoto) o;
return Objects.equals(photo50, messageActionPhoto.photo50) &&
Objects.equals(photo100, messageActionPhoto.photo100) &&
Objects.equals(photo200, messageActionPhoto.photo200);
}
@Override
public String toString() {
final Gson gson = new Gson();
return gson.toJson(this);
}
public String toPrettyString() {
final StringBuilder sb = new StringBuilder("MessageActionPhoto{");
sb.append("photo50=").append(photo50);
sb.append(", photo100=").append(photo100);
sb.append(", photo200=").append(photo200);
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy