public ZJSONObject toZJSONObject() throws JSONException { ZJSONObject jo = new ZJSONObject(); jo.put("type", mGranteeType.name()); jo.put("name", mGranteeName); jo.put("id", mGranteeId); jo.put("permissions", mPermissions); jo.put("args", mArgs); return jo; }
public ZJSONObject toZJSONObject() throws JSONException { ZJSONObject jo = new ZJSONObject(); jo.put("type", mGranteeType.name()); jo.put("name", mGranteeName); jo.put("id", mGranteeId); jo.put("right", mRight); jo.put("deny", mDeny); return jo; }
@Override public ZJSONObject toZJSONObject() throws JSONException { ZJSONObject jo = new ZJSONObject(); jo.put("id", mId); jo.put("flags", mFlags); jo.put("tags", mTags); jo.put("fragment", mFragment); jo.put("subject", mSubject); jo.put("date", mDate); jo.put("sortField", mSortField); jo.put("messageCount", mMessageCount); jo.putList("messageIds", mMessageIds); jo.put("recipients", mRecipients); return jo; }
public ZJSONObject toZJSONObject() throws JSONException { // TODO: Implement in subclasses? ZJSONObject jo = new ZJSONObject(); jo.put("name", getName()); return jo; }