📄 videobroadcast.java
字号:
/* * Copyright (C) 2010 Teleal GmbH, Switzerland * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */package org.teleal.cling.support.model.item;import org.teleal.cling.support.model.Res;import org.teleal.cling.support.model.container.Container;import java.net.URI;import static org.teleal.cling.support.model.DIDLObject.Property.UPNP;/** * @author Christian Bauer */public class VideoBroadcast extends VideoItem { public static final Class CLASS = new Class("object.item.videoItem.videoBroadcast"); public VideoBroadcast() { setClazz(CLASS); } public VideoBroadcast(Item other) { super(other); } public VideoBroadcast(String id, Container parent, String title, String creator, Res... resource) { this(id, parent.getId(), title, creator, resource); } public VideoBroadcast(String id, String parentID, String title, String creator, Res... resource) { super(id, parentID, title, creator, resource); setClazz(CLASS); } public URI getIcon() { return getFirstPropertyValue(UPNP.ICON.class); } public VideoBroadcast setIcon(URI icon) { replaceFirstProperty(new UPNP.ICON(icon)); return this; } public String getRegion() { return getFirstPropertyValue(UPNP.REGION.class); } public VideoBroadcast setRegion(String region) { replaceFirstProperty(new UPNP.REGION(region)); return this; } public Integer getChannelNr() { return getFirstPropertyValue(UPNP.CHANNEL_NR.class); } public VideoBroadcast setChannelNr(Integer channelNr) { replaceFirstProperty(new UPNP.CHANNEL_NR(channelNr)); return this; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -