package com.hbc.svc.sundial.v2.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.JsonProcessingException; import java.io.IOException; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.Arrays; import java.util.UUID; import org.joda.time.DateTime; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 2.0.0-dev * User agent: apibuilder app.apibuilder.io/hbc/svc-sundial/2.0.0-dev/android_client * * WARNING: not all features (notably unions) and data types work with android generator yet. * Android generator is designed to be used in an android application, but should work in any java codebase as long as you import jackson and retrofit2 libraries. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact android-feedback@gilt.com * */ @JsonIgnoreProperties( ignoreUnknown = true ) public class Process { private final UUID processId; private final String processDefinitionName; private final DateTime startTime; private final ProcessStatus status; private final Task[] task; @JsonCreator public Process(@JsonProperty("process_id") UUID processId, @JsonProperty("process_definition_name") String processDefinitionName, @JsonProperty("start_time") DateTime startTime, @JsonProperty("status") ProcessStatus status, @JsonProperty("task") Task[] task) { this.processId = processId; this.processDefinitionName = processDefinitionName; this.startTime = startTime; this.status = status; this.task = task; } public UUID getProcessId() { return processId; } public String getProcessDefinitionName() { return processDefinitionName; } public DateTime getStartTime() { return startTime; } public ProcessStatus getStatus() { return status; } public Task[] getTask() { return task; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Process that = (Process) o; if (processId != null ? !processId.equals(that.processId) : that.processId != null) return false; if (processDefinitionName != null ? !processDefinitionName.equals(that.processDefinitionName) : that.processDefinitionName != null) return false; if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) return false; if (status != null ? !status.equals(that.status) : that.status != null) return false; if (!Arrays.equals(task, that.task)) return false; return true; } @Override public int hashCode() { int result = 0; result = 31 * result + (processId != null ? processId.hashCode() : 0); result = 31 * result + (processDefinitionName != null ? processDefinitionName.hashCode() : 0); result = 31 * result + (startTime != null ? startTime.hashCode() : 0); result = 31 * result + (status != null ? status.hashCode() : 0); result = 31 * result + (task != null ? task.hashCode() : 0); return result; } public String toJsonString() throws JsonProcessingException { return com.hbc.svc.sundial.v2.android.ApiBuilderObjectMapper.getInstance().writeValueAsString(this); } public static Process parseJson(String json) throws IOException { return com.hbc.svc.sundial.v2.android.ApiBuilderObjectMapper.getInstance().readValue( json, Process.class); } }