| | |
| | | package com.application.zhangshi_app_android.bean; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @author Ljj |
| | | * @date 2023.07.17. 22:03 |
| | | * @desc 轮播图 bean |
| | | */ |
| | | public class BannerBean { |
| | | public class BannerBean implements Serializable { |
| | | //id |
| | | private int id; |
| | | //个人id |
| | |
| | | private String url; |
| | | //文件类型 1 视频 0 图片 |
| | | private int flag; |
| | | //是否被选中 1 选中 0 未选中 |
| | | private int choose; |
| | | |
| | | public int getId() { |
| | | return id; |
| | |
| | | public void setFlag(int flag) { |
| | | this.flag = flag; |
| | | } |
| | | |
| | | public int getChoose() { |
| | | return choose; |
| | | } |
| | | |
| | | public void setChoose(int choose) { |
| | | this.choose = choose; |
| | | } |
| | | |
| | | @Override |
| | | public boolean equals(Object o) { |
| | | if (this == o) return true; |
| | | if (o == null || getClass() != o.getClass()) return false; |
| | | BannerBean that = (BannerBean) o; |
| | | return id == that.id && uid == that.uid && flag == that.flag && choose == that.choose && url.equals(that.url); |
| | | } |
| | | |
| | | @Override |
| | | public int hashCode() { |
| | | return Objects.hash(id, uid, url, flag, choose); |
| | | } |
| | | } |