Subversion Repositories SmartDukaan

Rev

Rev 21545 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

public class MediaPojo {
        private String title;
        private String url;
        private String imageData;

        public MediaPojo() {

        }

        public MediaPojo(String title, String imageData) {
                this.title = title;
                this.imageData = imageData;
        }
        
        public MediaPojo(String title, String url, String imageData) {
                this.title = title;
                this.imageData = imageData;
        }

        public String getImageData() {
                return imageData;
        }

        public void setImageData(String imageData) {
                this.imageData = imageData;
        }

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((imageData == null) ? 0 : imageData.hashCode());
                result = prime * result + ((title == null) ? 0 : title.hashCode());
                result = prime * result + ((url == null) ? 0 : url.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;
                MediaPojo other = (MediaPojo) obj;
                if (imageData == null) {
                        if (other.imageData != null)
                                return false;
                } else if (!imageData.equals(other.imageData))
                        return false;
                if (title == null) {
                        if (other.title != null)
                                return false;
                } else if (!title.equals(other.title))
                        return false;
                if (url == null) {
                        if (other.url != null)
                                return false;
                } else if (!url.equals(other.url))
                        return false;
                return true;
        }

        @Override
        public String toString() {
                return "MediaPojo [title=" + title + ", url=" + url + ", imageData=" + imageData + "]";
        }


        public String getTitle() {
                return title;
        }

        public void setTitle(String title) {
                this.title = title;
        }

        public String getUrl() {
                return url;
        }

        public void setUrl(String url) {
                this.url = url;
        }
}