⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 parameter_builder.java

📁 中移动lbs系统服务器端源码
💻 JAVA
字号:
package cn.netjava.lbs.le;

import cn.netjava.lbs.NetJava_LBS_Server;

 /**
  * 
  * <p>Title:中国移动手机定位系统(LBS) le接口库</p>
  * <p>Description: </p>
  * <p>Company:蓝杰实训 </p>
  * @author www.NetJava.cn 
  * @version 0.1
  */
public class Parameter_Builder {
	public Parameter_Builder() {
	}

	/**
	 * 自己马上定位自己的参数包 selfMobile:被定位者的手机号码
	 */
	public AttributeRequestParaBean L_sycnIm(String selfMobile) {
		AttributeRequestParaBean rb = new AttributeRequestParaBean();
		rb.msids_msid = selfMobile;
		rb.resp_req_type = Parameter_resp_req_type.DELAY_TOL_default;
		rb.eqop_hor_acc = "100";
		rb.loc_type_type = Parameter_loc_type_type.CURRENT_OR_LAST;
		rb.requestmode_type = Parameter_requestmode_type.ACTIVE;
		rb.sycnOrAsycn = true;
		rb.selfOrOther = true;
		return rb;
	}

	/**
	 * 自己马上定位别人 requestor_id:发起者的手机号,需要对此手机号进行签权 destMobile:被定位者的手机号
	 */
	public	AttributeRequestParaBean L_sycnIm(String requestor_id, String destMobile) {
		AttributeRequestParaBean rb = new AttributeRequestParaBean();
		rb.requestor_id = requestor_id;
		rb.msids_msid = destMobile;
		rb.resp_req_type = Parameter_resp_req_type.DELAY_TOL_default;
		rb.eqop_hor_acc = "100";
		rb.loc_type_type = Parameter_loc_type_type.CURRENT_default;
		rb.requestmode_type = Parameter_requestmode_type.PASSIVE;
		rb.sycnOrAsycn = true;
		rb.selfOrOther = false;
		return rb;
	}

	/**
	 * 自己紧急定位自己 selfMobile:要定位的手机号
	 */
	public	AttributeRequestParaBean L_sycnEme(String selfMobile) {
		AttributeRequestParaBean rb = new AttributeRequestParaBean();
		rb.msids_msid = selfMobile;
		rb.eqop_hor_acc = "100";
		rb.loc_type_type = Parameter_loc_type_type.CURRENT_OR_LAST;
		rb.selfOrOther = true;
		return rb;
	}

	/**
	 * 自己紧急定位别人 requestor_id:发起者的手机号,需要对此手机号进行签权 destMobile:被定位者的手机号
	 */
	public AttributeRequestParaBean L_sycnEme(String requestor_id, String destMobile) {
		AttributeRequestParaBean rb = new AttributeRequestParaBean();
		rb.requestor_id = requestor_id;
		rb.msids_msid = destMobile;
		rb.eqop_hor_acc = "100";
		rb.loc_type_type = Parameter_loc_type_type.CURRENT_default;
		rb.selfOrOther = false;
		return rb;
	}

	/**
	 * triger自己
	 * 
	 * @param selfMobile
	 *            String:被定位者的手机号码
	 * @param tlrr_interval
	 *            String:报告间隔
	 * @param tlrr_start_time
	 *            String:起始时间
	 * @param tlrr_stop_time
	 *            String:结束时间
	 * @return AttributeRequestParaBean:参数对象
	 */
	public AttributeRequestParaBean L_AycnTrigSelf(String selfMobile,
			String tlrr_interval, String tlrr_start_time, String tlrr_stop_time) {
		AttributeRequestParaBean rb = new AttributeRequestParaBean();
		rb.msids_msid = selfMobile;
		rb.resp_req_type = Parameter_resp_req_type.DELAY_TOL_default;
		rb.eqop_hor_acc = "100";
		rb.loc_type_type = Parameter_loc_type_type.CURRENT_default;
		rb.requestmode_type = Parameter_requestmode_type.PASSIVE;
		rb.prio_type = Parameter_prio_type.HIGH;

		rb.pushaddr_url = NetJava_LBS_Server.pushaddr_url;
		rb.pushaddr_pwd = NetJava_LBS_Server.pushaddr_pwd;
		rb.pushaddr_id = NetJava_LBS_Server.pushaddr_id;

		rb.tlrr_interval = tlrr_interval;
		rb.tlrr_start_time = tlrr_start_time;
		rb.tlrr_stop_time = tlrr_stop_time;

		rb.selfOrOther = true;
		return rb;
	}

	/**
	 * triger自己
	 * 
	 * @param requestor_id
	 *            String:发起者的手机号码
	 * @param tlrr_interval
	 *            String:报告间隔
	 * @param tlrr_start_time
	 *            String:起始时间
	 * @param tlrr_stop_time
	 *            String:结束时间
	 * @param destMobile
	 *            String:被定者的手机号码
	 * @return AttributeRequestParaBean:参数对象
	 */
	public AttributeRequestParaBean L_AycnTrigOther(String requestor_id,
			String tlrr_interval, String tlrr_start_time,
			String tlrr_stop_time, String destMobile) {
		AttributeRequestParaBean rb = L_AycnTrigSelf(destMobile, tlrr_interval,
				tlrr_start_time, tlrr_stop_time);
		rb.requestor_id = requestor_id;
		rb.selfOrOther = false;
		return rb;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -