admin
2021-09-24 f788607ff771a47bc60d6a86e00b3433c40f3d2c
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
package com.yeshi.buwan.vo.tvlive;
 
import com.yeshi.buwan.domain.live.TVLiveChannelResourceMap;
import com.yeshi.buwan.domain.live.TVLiveResource;
 
/**
 * 电视频道资源
 */
public class TVLiveChannelResourceMapAdminVO {
 
    private String id;
    private String playUrl;
    private String name;
    private int weight;
 
    public String getId() {
        return id;
    }
 
    public void setId(String id) {
        this.id = id;
    }
 
    public String getPlayUrl() {
        return playUrl;
    }
 
    public void setPlayUrl(String playUrl) {
        this.playUrl = playUrl;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public int getWeight() {
        return weight;
    }
 
    public void setWeight(int weight) {
        this.weight = weight;
    }
 
    public static TVLiveChannelResourceMapAdminVO create(TVLiveChannelResourceMap map) {
        if (map == null) {
            return null;
        }
        TVLiveChannelResourceMapAdminVO vo = new TVLiveChannelResourceMapAdminVO();
        if (map.getResource() == TVLiveResource.migu) {
            vo.setName("咪咕");
        } else {
            vo.setName(map.getSubResourceName());
        }
        vo.setId(map.getId());
        vo.setPlayUrl(map.getPlayUrl());
        vo.setWeight(map.getWeight());
        return vo;
    }
}