Created
March 28, 2015 03:01
-
-
Save edwardinubuntu/23a785208add676deb42 to your computer and use it in GitHub Desktop.
Parse Object Subclassing
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
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