package com.example.switchyard.soap.model; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for videoDetails complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="videoDetails"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="timeout" type="{http://www.w3.org/2001/XMLSchema}int"/> * <element name="videoUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "videoDetails", propOrder = { "timeout", "videoUrl" }) public class VideoDetails { private String videoUrl; private int timeout; public String getVideoUrl() { return videoUrl; } public void setVideoUrl(String videoUrl) { this.videoUrl = videoUrl; } public int getTimeout() { return timeout; } public void setTimeout(int timeout) { this.timeout = timeout; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + timeout; result = prime * result + ((videoUrl == null) ? 0 : videoUrl.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; VideoDetails other = (VideoDetails) obj; if (timeout != other.timeout) return false; if (videoUrl == null) { if (other.videoUrl != null) return false; } else if (!videoUrl.equals(other.videoUrl)) return false; return true; } @Override public String toString() { return "VideoDetails [videoUrl=" + videoUrl + ", timeout=" + timeout + "]"; } }