Example #1
0
 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;
 }
Example #2
0
 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;
 }
 public String dump() {
   return ZJSONObject.toString(this);
 }
 @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;
 }
Example #5
0
 public ZJSONObject toZJSONObject() throws JSONException {
   // TODO: Implement in subclasses?
   ZJSONObject jo = new ZJSONObject();
   jo.put("name", getName());
   return jo;
 }