infobip.api.model.sms.mt.reports.SMSReportResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infobip-api-java-client Show documentation
Show all versions of infobip-api-java-client Show documentation
API client in Java for Infobip's API (http://dev.infobip.com/).
package infobip.api.model.sms.mt.reports;
import infobip.api.model.sms.mt.reports.SMSReport;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.List;
/**
* This is a generated class and is not intended for modification!
*/
public class SMSReportResponse {
private List results = new ArrayList();
public SMSReportResponse() {
}
public List getResults() {
return this.results;
}
public SMSReportResponse setResults(List results) {
this.results = results;
return this;
}
public SMSReportResponse addResults(SMSReport... results) {
this.results.addAll(Arrays.asList(results));
return this;
}
public SMSReportResponse removeResults(SMSReport... results) {
this.results.removeAll(Arrays.asList(results));
return this;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
SMSReportResponse o = (SMSReportResponse)obj;
if (this.results == null) {
if (o.results != null){
return false;
}
} else if (!this.results.equals(o.results)) {
return false;
}
return true;
}
@Override
public String toString() {
return "SMSReportResponse{" +
"results=" + (results == null?"null":Arrays.toString(results.toArray())) +
'}';
}
}