当前位置: 首页>>代码示例>>Java>>正文


Java PTZPreset类代码示例

本文整理汇总了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();
}
 
开发者ID:milg0,项目名称:onvif-java-lib,代码行数:21,代码来源:PtzDevices.java

示例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();
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:10,代码来源:PtzService.java

示例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;
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:27,代码来源:GetPresetsResponse.java

示例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;
}
 
开发者ID:fpompermaier,项目名称:onvif,代码行数:29,代码来源:GetPresetsResponse.java


注:本文中的org.onvif.ver10.schema.PTZPreset类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。