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;
|
}
|
}
|