org.easytravelapi.swagger.client.model.GetAvailableActivitiesRS Maven / Gradle / Ivy
package org.easytravelapi.swagger.client.model;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Response with the list of available activities
*/
@ApiModel(description = "Response with the list of available activities")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-09-18T08:43:59.135Z")
public class GetAvailableActivitiesRS {
@SerializedName("statusCode")
private Integer statusCode = null;
@SerializedName("msg")
private String msg = null;
@SerializedName("systemTime")
private String systemTime = null;
@SerializedName("availableActivities")
private List availableActivities = new ArrayList();
public GetAvailableActivitiesRS statusCode(Integer statusCode) {
this.statusCode = statusCode;
return this;
}
/**
* status code for the operation. It will be 200 if it was OK and any other value if something went wrong. Provider dependant
* @return statusCode
**/
@ApiModelProperty(value = "status code for the operation. It will be 200 if it was OK and any other value if something went wrong. Provider dependant")
public Integer getStatusCode() {
return statusCode;
}
public void setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
}
public GetAvailableActivitiesRS msg(String msg) {
this.msg = msg;
return this;
}
/**
* error message, if needed
* @return msg
**/
@ApiModelProperty(value = "error message, if needed")
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public GetAvailableActivitiesRS systemTime(String systemTime) {
this.systemTime = systemTime;
return this;
}
/**
* System time in ISO8651 format. Useful for bug resolution
* @return systemTime
**/
@ApiModelProperty(value = "System time in ISO8651 format. Useful for bug resolution")
public String getSystemTime() {
return systemTime;
}
public void setSystemTime(String systemTime) {
this.systemTime = systemTime;
}
public GetAvailableActivitiesRS availableActivities(List availableActivities) {
this.availableActivities = availableActivities;
return this;
}
public GetAvailableActivitiesRS addAvailableActivitiesItem(AvailableActivity availableActivitiesItem) {
this.availableActivities.add(availableActivitiesItem);
return this;
}
/**
* List of the available activities for that resort and dates
* @return availableActivities
**/
@ApiModelProperty(value = "List of the available activities for that resort and dates")
public List getAvailableActivities() {
return availableActivities;
}
public void setAvailableActivities(List availableActivities) {
this.availableActivities = availableActivities;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetAvailableActivitiesRS getAvailableActivitiesRS = (GetAvailableActivitiesRS) o;
return Objects.equals(this.statusCode, getAvailableActivitiesRS.statusCode) &&
Objects.equals(this.msg, getAvailableActivitiesRS.msg) &&
Objects.equals(this.systemTime, getAvailableActivitiesRS.systemTime) &&
Objects.equals(this.availableActivities, getAvailableActivitiesRS.availableActivities);
}
@Override
public int hashCode() {
return Objects.hash(statusCode, msg, systemTime, availableActivities);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetAvailableActivitiesRS {\n");
sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n");
sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
sb.append(" systemTime: ").append(toIndentedString(systemTime)).append("\n");
sb.append(" availableActivities: ").append(toIndentedString(availableActivities)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy