com.vk.api.sdk.objects.leadforms.Lead 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.leadforms;
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.util.List;
import java.util.Objects;
/**
* Lead object
*/
public class Lead implements Validable {
@SerializedName("ad_id")
private Integer adId;
@SerializedName("answers")
@Required
private List answers;
@SerializedName("date")
@Required
private Integer date;
@SerializedName("lead_id")
@Required
private Integer leadId;
/**
* Entity: owner
*/
@SerializedName("user_id")
@Required
private Long userId;
public Integer getAdId() {
return adId;
}
public Lead setAdId(Integer adId) {
this.adId = adId;
return this;
}
public List getAnswers() {
return answers;
}
public Lead setAnswers(List answers) {
this.answers = answers;
return this;
}
public Integer getDate() {
return date;
}
public Lead setDate(Integer date) {
this.date = date;
return this;
}
public Integer getLeadId() {
return leadId;
}
public Lead setLeadId(Integer leadId) {
this.leadId = leadId;
return this;
}
public Long getUserId() {
return userId;
}
public Lead setUserId(Long userId) {
this.userId = userId;
return this;
}
@Override
public int hashCode() {
return Objects.hash(date, adId, answers, userId, leadId);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Lead lead = (Lead) o;
return Objects.equals(date, lead.date) &&
Objects.equals(adId, lead.adId) &&
Objects.equals(userId, lead.userId) &&
Objects.equals(answers, lead.answers) &&
Objects.equals(leadId, lead.leadId);
}
@Override
public String toString() {
final Gson gson = new Gson();
return gson.toJson(this);
}
public String toPrettyString() {
final StringBuilder sb = new StringBuilder("Lead{");
sb.append("date=").append(date);
sb.append(", adId=").append(adId);
sb.append(", userId=").append(userId);
sb.append(", answers=").append(answers);
sb.append(", leadId=").append(leadId);
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy