我希望获得与此Soap对象响应不同的值
if (call_media_status == pjsua_call_media_status.PJSUA_CALL_MEDIA_ACTIVE ||
call_media_status == pjsua_call_media_status.PJSUA_CALL_MEDIA_REMOTE_HOLD) {
int callConfSlot = call_info.getConf_slot();
int status = pjsua.pjsua_recorder_create(pjsua.pj_str_copy("/storage/sdcard0/test.wav"), 0, null, 0, 0, ids);
if (status != pjsuaConstants.PJ_SUCCESS) {
App.logd("NOT SUCCESSFULL IN RECORDING=" + status);
} else {
App.logd("Scccuessfull in recording");
int recordPort = pjsua.pjsua_recorder_get_conf_port(ids[0]);
pjsua.conf_connect(callConfSlot, recordPort);
pjsua.conf_connect(0, recordPort);//this line includes microphone
}}
答案 0 :(得分:0)
将您的对象转换为SoapObject
SoapObject userObject = (SoapObject) res1.getProperty("data");
if (userObject != null) {
User user = new User();
user.setId(userObject.getProperty("Id").toString());
user.setName(userObject.getProperty("Name").toString());
user.setSalary(userObject.getProperty("Salary").toString());
}