1 package com.netease.nimlib.sdk.qcmedia.model;
3 import android.text.TextUtils;
6 import org.json.JSONObject;
17 this.profile = profile;
18 this.scenario = scenario;
26 this.profile = profile;
34 this.scenario = scenario;
39 JSONObject jsonObject =
new JSONObject();
40 jsonObject.put(
"profile",profile.name());
41 jsonObject.put(
"scenario",scenario.name());
42 return jsonObject.toString();
43 }
catch (Exception e) {
52 if(!TextUtils.isEmpty(json)){
54 JSONObject jsonObject =
new JSONObject(json);
58 }
catch (Exception e) {