
com.vk.api.sdk.objects.callback.groups.CallbackGroupSettingsChange 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.callback.groups;
import com.google.gson.annotations.SerializedName;
import java.util.Objects;
/**
* Created by Anton Tsivarev on 11.08.17.
*/
public class CallbackGroupSettingsChange {
@SerializedName("old_value")
private T oldValue;
@SerializedName("new_value")
private T newValue;
public T getOldValue() {
return oldValue;
}
public T getNewValue() {
return newValue;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CallbackGroupSettingsChange> that = (CallbackGroupSettingsChange>) o;
return Objects.equals(oldValue, that.oldValue) &&
Objects.equals(newValue, that.newValue);
}
@Override
public int hashCode() {
return Objects.hash(oldValue, newValue);
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("CallbackGroupSettingsChange{");
sb.append("newValue=").append(newValue);
sb.append(", oldValue=").append(oldValue);
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy