com.github.flysium.io.yew.common.model.media.MediaContent Maven / Gradle / Ivy
/*
* Copyright 2018-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.flysium.io.yew.common.model.media;
import java.util.List;
@SuppressWarnings("serial")
public class MediaContent implements java.io.Serializable {
public Media media;
public List images;
public MediaContent() {
}
public MediaContent(Media media, List images) {
this.media = media;
this.images = images;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MediaContent that = (MediaContent) o;
if (images != null ? !images.equals(that.images) : that.images != null) {
return false;
}
if (media != null ? !media.equals(that.media) : that.media != null) {
return false;
}
return true;
}
@Override
public int hashCode() {
int result = media != null ? media.hashCode() : 0;
result = 31 * result + (images != null ? images.hashCode() : 0);
return result;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("[MediaContent: ");
sb.append("media=").append(media);
sb.append(", images=").append(images);
sb.append("]");
return sb.toString();
}
public Media getMedia() {
return media;
}
public void setMedia(Media media) {
this.media = media;
}
public List getImages() {
return images;
}
public void setImages(List images) {
this.images = images;
}
}