use of com.baosight.iplat4mandroid.core.ei.eiinfo.EiBlockMeta in project weex-example by KalicyZhou.
the class BXDataManager method registerDeviceToServer.
public void registerDeviceToServer(String mUserName) {
EiInfo inInfo = new EiInfo();
inInfo.set("projectName", "platmbs");
inInfo.set("serviceName", "ML00");
inInfo.set("methodName", "bindingUserAndDevice");
inInfo.set("parameter_compressdata", "true");
inInfo.set("parameter_encryptdata", "true");
inInfo.set("parameter_clienttypeid", "android");
inInfo.set("parameter_clienidtversion", Build.VERSION.RELEASE);
EiBlockMeta meta = new EiBlockMeta();
EiColumn col0 = new EiColumn("userId");
col0.setPos(0);
meta.addMeta(col0);
EiColumn col1 = new EiColumn("deviceId");
col1.setPos(1);
meta.addMeta(col1);
EiColumn col2 = new EiColumn("deviceType");
col2.setPos(2);
meta.addMeta(col2);
EiColumn col3 = new EiColumn("globaldeviceid");
col3.setPos(3);
meta.addMeta(col3);
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(meta);
HashMap map = new HashMap();
String deviceId = TeleUtils.getDeviceId(this.getActivity());
map.put("userId", mUserName);
map.put("deviceId", deviceId);
map.put("deviceType", "android");
map.put("globaldeviceid", deviceId);
inInfo.getBlock(EiConstant.resultBlock).addRow(map);
EiService.getBoundService().getAgent().callService(inInfo, this, "registerCallback");
}
Aggregations