Skip to content

Instantly share code, notes, and snippets.

@edwardinubuntu
Created March 28, 2015 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardinubuntu/23a785208add676deb42 to your computer and use it in GitHub Desktop.
Save edwardinubuntu/23a785208add676deb42 to your computer and use it in GitHub Desktop.
Parse Object Subclassing
package tw.alphacamp.tripphotoapp.object;
import com.parse.ParseClassName;
import com.parse.ParseFile;
import com.parse.ParseGeoPoint;
import com.parse.ParseObject;
/**
* Created by edward_chiang on 15/1/24.
*/
@ParseClassName("Photo")
public class Photo extends ParseObject {
public String getName() {
return getString("name");
}
public void setName(String name) {
put("name", name);
}
public ParseGeoPoint getLocation() {
return getParseGeoPoint("location");
}
public void setLocation(ParseGeoPoint location) {
put("location", location);
}
public ParseFile getImageFile() {
return getParseFile("imageFile");
}
public void setImageFile(ParseFile imageFile) {
put("imageFile", imageFile);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment