本文整理汇总了Java中org.onvif.ver10.schema.PTZPreset类的典型用法代码示例。如果您正苦于以下问题:Java PTZPreset类的具体用法?Java PTZPreset怎么用?Java PTZPreset使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PTZPreset类属于org.onvif.ver10.schema包,在下文中一共展示了PTZPreset类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPresets
import org.onvif.ver10.schema.PTZPreset; //导入依赖的package包/类
public List<PTZPreset> getPresets(String profileToken) {
GetPresets request = new GetPresets();
GetPresetsResponse response = new GetPresetsResponse();
request.setProfileToken(profileToken);
try {
response = (GetPresetsResponse) soap.createSOAPPtzRequest(request, response, true);
}
catch (SOAPException | ConnectException e) {
e.printStackTrace();
return null;
}
if (response == null) {
return null;
}
return response.getPreset();
}
示例2: getPresets
import org.onvif.ver10.schema.PTZPreset; //导入依赖的package包/类
public List<PTZPreset> getPresets(String profileToken) throws Exception {
GetPresets request = new GetPresets();
request.setProfileToken(profileToken);
GetPresetsResponse response = client.processRequest(request, GetPresetsResponse.class, serviceUrl, true);
if (response == null) {
return null;
}
return response.getPreset();
}
示例3: getPreset
import org.onvif.ver10.schema.PTZPreset; //导入依赖的package包/类
/**
* Gets the value of the preset property.
*
* <p>
* This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the preset property.
*
* <p>
* For example, to add a new item, do as follows:
*
* <pre>
* getPreset().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list {@link PTZPreset }
*
*
*/
public List<PTZPreset> getPreset() {
if (preset == null) {
preset = new ArrayList<PTZPreset>();
}
return this.preset;
}
示例4: getPreset
import org.onvif.ver10.schema.PTZPreset; //导入依赖的package包/类
/**
* Gets the value of the preset property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the preset property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPreset().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link PTZPreset }
*
*
*/
public List<PTZPreset> getPreset() {
if (preset == null) {
preset = new ArrayList<PTZPreset>();
}
return this.preset;
}