示例#1
0
文件: ZGrant.java 项目: huu0510/z-pec
 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;
 }
示例#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;
 }
 @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;
 }
示例#4
0
 public ZJSONObject toZJSONObject() throws JSONException {
   // TODO: Implement in subclasses?
   ZJSONObject jo = new ZJSONObject();
   jo.put("name", getName());
   return jo;
 }