Last active
August 29, 2015 14:26
-
-
Save chengscott/265a36a197ad93b17aa6 to your computer and use it in GitHub Desktop.
Parse.com ParseObject subclass example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LICENSE : https://gist.github.com/52c13856a6d59acaa86f.git | |
import com.parse.ParseClassName; | |
import com.parse.ParseGeoPoint; | |
import com.parse.ParseObject; | |
@ParseClassName("Shop") | |
public class Shop extends ParseObject { | |
public Shop() { | |
// A default constructor is required. | |
} | |
public String getName() { | |
return getString("name"); | |
} | |
public void setName(String name) { | |
put("name", name); | |
} | |
public String getCategory() { | |
return getString("category"); | |
} | |
public void setCategory(String cat) { | |
put("category", cat); | |
} | |
public String getDescription() { | |
return getString("description"); | |
} | |
public void settDescription(String des) { | |
put("description", des); | |
} | |
public boolean isTakeout() { return getBoolean("takeout"); } | |
public void setTakeout(Boolean takeout) { put("takeout", takeout); } | |
public boolean isAuthorized() { return getBoolean("authorized"); } | |
public void setAuthorized(Boolean auth) { put("authorized", auth); } | |
public ParseGeoPoint getLocation() { return getParseGeoPoint("location"); } | |
public void setLocation(Boolean loc) { put("location", loc); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment