Back to project page ExpertAndroid.
The source code is released under:
MIT License
If you think the Android project ExpertAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.iuriio.demos.expertandroid.ch13parsesimple; /*from w ww . j av a2 s . co m*/ import com.parse.ParseObject; import com.parse.ParseUser; /** * Created by iuriio on 10/30/13. */ public class ParseObjectWrapper { private static final String CREATED_AT = "createdAt"; private static final String CREATED_BY = "createdBy"; private static final String UPDATED_AT = "updatedAt"; private static final String UPDATED_BY = "updatedBy"; protected ParseObject po; public ParseObjectWrapper(String tableName) { this.po = new ParseObject(tableName); po.put(CREATED_BY, ParseUser.getCurrentUser()); } public ParseObjectWrapper(ParseObject in) { this.po = in; } public ParseObject getParseObject() { return this.po; } public ParseUser getCreatedBy() { return this.po.getParseUser(CREATED_BY); } public void setCreatedBy(ParseUser in) { this.po.put(CREATED_BY, in); } public void setUpdatedBy() { this.po.put(UPDATED_BY, ParseUser.getCurrentUser()); } public ParseUser getLastUpdatedBy() { return this.po.getParseUser(UPDATED_BY); } }