package com.parse.anypic;

import com.parse.ParseClassName;
import com.parse.ParseFile;
import com.parse.ParseObject;
import com.parse.ParseUser;

/*
 * An extension of ParseObject that makes
 * it more convenient to access information
 * about a given Photo
 */

@ParseClassName("Activity")
public class Activity extends ParseObject {

    public Activity() {
        // A default constructor is required.
    }

    public ParseUser getFromUser(){
        return getParseUser("fromUser");
    }

    public void setFromUser(ParseUser user){
        put("fromUser", user);
    }

    public ParseUser getToUser(){
        return getParseUser("toUser");
    }

    public void setToUser(ParseUser user){
        put("toUser", user);
    }

    public String getType(){
        return getString("type");
    }

    public void setType(String t){
        put("type", t);
    }

    public String getContent(){
        return getString("content");
    }

    public void setContent(String c){
        put("content", c);
    }

    public ParseFile getPhoto(){
        return getParseFile("photo");
    }

    public void setPhoto(ParseFile pf){
        put("photo", pf);
    }
}


@@ -57,36 +57,8 @@
 me;%0A
-import com.parse.ParseFile;%0A
 impo
@@ -1005,20 +1005,22 @@
 ic Parse
-File
+Object
  getPhot
@@ -1047,20 +1047,22 @@
 getParse
-File
+Object
 (%22photo%22
@@ -1105,12 +1105,14 @@
 arse
-File
+Object
  pf)

Change object Activity element photo type to ParseObject