LiveInfo.java 8.47 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403
package com.wd.foundation.bean.mail;


import com.wd.foundation.bean.base.BaseBean;
import com.wd.foundation.bean.live.RoomDataBean;

import java.io.Serializable;
import java.util.List;

/**
 * @ProjectName: PeopleDailyEnglish
 * @Package: com.people.entity.mail
 * @ClassName: LiveInfo
 * @Description: 描述
 * @Author: wd
 * @CreateDate: 2023/2/13 17:53
 * @UpdateUser: wd
 * @UpdateDate: 2023/2/13 17:53
 * @UpdateRemark: 更新说明:
 * @Version: 1.0
 */

public class LiveInfo implements Serializable {
    /**
     * 直播背景图的 已经部署到dev了,客户端可以加下
     * */
    private BackgroundBean background;
    /**
     * string必须直播新闻 wait-待开播 running-直播中 end-已结束 cancel-已取消 paused-暂停
     * */
    private String liveState;

    /**
     *general-竖屏,news-横屏
     * */
    private String liveLandScape;

    /**
     * 计划开播时间
     * */
    private String planStartTime;

    /**
     * 开播时间 2023-10-11 16:51:55
     */
    public String liveStartTime;

    public long liveStartTimeLong;

    /**
     * 预估片类型,0-图片,1-视频
     * */
    private int previewType;

    /**
     * 预告片图片/视频url
     * */
    private String previewUrl;
    /**
     * 直播公告
     * */
    private String notice;
    /**
     *
     * */
    private String shareSwitch;

    /**
     * 开始时间
     * */
    private String startTime;

    /**
     * 结束时间
     * */
    private String endTime;

    /**
     * 直播类型
     * */
    private String tplId;

    /**
     *  直播回放地址【判断是否有回放】
     */
    private String replayUri;

    /**
     * 【迭代三】是否Vr,0:否,1:是
     */
    private int vrType = 0;

    /**
     * 接口新增字段,用于控制直播回放是否展示,
     * 为true时再展示直播回放
     * */
    public boolean playbackSwitch;

    //批查的直播数据
    public RoomDataBean infoBean;

    public BackgroundBean getBackground() {
        return background;
    }

    public void setBackground(BackgroundBean background) {
        this.background = background;
    }

    public int getVrType() {
        return vrType;
    }

    public void setVrType(int vrType) {
        this.vrType = vrType;
    }

    private MliveBean mlive;

    private List<VliveBean>  vlive;
    /**
     * 直播 创建人id
     */

    private String   createUserId;
    /**
     * 直播 创建人名称
     */
    private String   createUserName;
    /**
     * 直播 垫片 url
     */
    private String   padImageUri;;
    //是否开启评论 1是 0否
    private int openComment;
    //点赞样式 Love爱心型 thumb点赞手势 pray 祈福 buddha 佛手
    private String likesStyle;
    //是否开启点赞 1是 0否
    private int likeEnable;
    //内容预评论显示开关;1显示 0隐藏
    private int preCommentFlag;

    //直播样式 0-正常模式,1-隐藏直播
    private int  liveStyle;
    //背景样式 0-蓝色 1-红色 2-黑色

    private int  backgroundStyle;
    // 直播类型 0-视频直播,1-文字直播
    private int  liveWay;
    //是否开启挂角 true:开启 false:关闭
    private boolean handAngleSwitch;
    //挂角图片url
    private String handAngleImageUri;
    //挂角链接
    private String handAngleLink;

    public boolean isHandAngleSwitch() {
        return handAngleSwitch;
    }

    public void setHandAngleSwitch(boolean handAngleSwitch) {
        this.handAngleSwitch = handAngleSwitch;
    }

    public String getHandAngleImageUri() {
        return handAngleImageUri;
    }

    public void setHandAngleImageUri(String handAngleImageUri) {
        this.handAngleImageUri = handAngleImageUri;
    }

    public String getHandAngleLink() {
        return handAngleLink;
    }

    public void setHandAngleLink(String handAngleLink) {
        this.handAngleLink = handAngleLink;
    }

    public int getLiveStyle() {
        return liveStyle;
    }

    public void setLiveStyle(int liveStyle) {
        this.liveStyle = liveStyle;
    }

    public int getBackgroundStyle() {
        return backgroundStyle;
    }

    public void setBackgroundStyle(int backgroundStyle) {
        this.backgroundStyle = backgroundStyle;
    }

    public int getLiveWay() {
        return liveWay;
    }

    public void setLiveWay(int liveWay) {
        this.liveWay = liveWay;
    }

    public int getOpenComment() {
        return openComment;
    }

    public void setOpenComment(int openComment) {
        this.openComment = openComment;
    }

    public String getLikesStyle() {
        return likesStyle;
    }

    public void setLikesStyle(String likesStyle) {
        this.likesStyle = likesStyle;
    }

    public int getLikeEnable() {
        return likeEnable;
    }

    public void setLikeEnable(int likeEnable) {
        this.likeEnable = likeEnable;
    }

    public int getPreCommentFlag() {
        return preCommentFlag;
    }

    public void setPreCommentFlag(int preCommentFlag) {
        this.preCommentFlag = preCommentFlag;
    }

    public String getPadImageUri() {
        return padImageUri;
    }

    public void setPadImageUri(String padImageUri) {
        this.padImageUri = padImageUri;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public List<VliveBean> getVlive() {
        return vlive;
    }

    public void setVlive(List<VliveBean> vlive) {
        this.vlive = vlive;
    }

    public MliveBean getMlive() {
        return mlive;
    }

    public void setMlive(MliveBean mlive) {
        this.mlive = mlive;
    }

    public String getNotice() {
        return notice;
    }

    public void setNotice(String notice) {
        this.notice = notice;
    }

    public String getShareSwitch() {
        return shareSwitch;
    }

    public void setShareSwitch(String shareSwitch) {
        this.shareSwitch = shareSwitch;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getTplId() {
        return tplId;
    }

    public void setTplId(String tplId) {
        this.tplId = tplId;
    }
    public String getLiveState() {
        return liveState;
    }

    public void setLiveState(String liveState) {
        this.liveState = liveState;
    }

    public String getLiveLandScape() {
        return liveLandScape;
    }

    public int getLiveLandScapeWithInt() {
        // 1-横屏 2-竖屏
        int liveLandScapeInt;
        // general-竖屏,news-横屏
        if ("general".equalsIgnoreCase(liveLandScape)) {
            liveLandScapeInt = 2;
        }else {
            liveLandScapeInt = 1;
        }
        return liveLandScapeInt;
    }

    public void setLiveLandScape(String liveLandScape) {
        this.liveLandScape = liveLandScape;
    }

    public String getPlanStartTime() {
        return planStartTime;
    }

    public void setPlanStartTime(String planStartTime) {
        this.planStartTime = planStartTime;
    }

    public int getPreviewType() {
        return previewType;
    }

    public void setPreviewType(int previewType) {
        this.previewType = previewType;
    }

    public String getPreviewUrl() {
        return previewUrl;
    }

    public void setPreviewUrl(String previewUrl) {
        this.previewUrl = previewUrl;
    }

    public String getReplayUri() {
        if(playbackSwitch){
            return replayUri;
        }
        return "";
    }

    public String getVideoUri(){
        return replayUri;
    }

    public void setReplayUri(String replayUri) {
        this.replayUri = replayUri;
    }

    public static class BackgroundBean extends BaseBean {
        private String imageUrl;
        private String name;

        public String getImageUrl() {
            return imageUrl;
        }

        public void setImageUrl(String imageUri) {
            this.imageUrl = imageUri;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}