package com.siteshot.siteshot;

import android.app.Application;
import android.widget.Toast;

import com.parse.Parse;
import com.parse.ParseACL;
import com.parse.ParseObject;
import com.siteshot.siteshot.models.UserPhoto;
import com.siteshot.siteshot.utils.PhotoUtils;

/**
 * Created by aclissold on 9/25/14.
 */
public class SiteShotApplication extends Application {

    private final String TAG = getClass().getName();

    @Override
    public void onCreate() {
        ParseObject.registerSubclass(UserPhoto.class);
        Parse.initialize(this, "1v3hMSVlhYla6NduIkhn76wlZKqH2nHJCLBNSoI0",
                "KO9ARhyVQm4qlknXlnvXQsMGl2oKlCurGZxgPvQp");
        ParseACL.setDefaultACL(new ParseACL(), true);

        PhotoUtils.getInstance().downloadUserPhotos();
    }

    public void showShortToast(String msg) {
        Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
    }

    public void showLongToast(String msg) {
        Toast.makeText(this, msg, Toast.LENGTH_LONG).show();
    }

}


@@ -115,35 +115,8 @@
 se;%0A
-import com.parse.ParseACL;%0A
 impo
@@ -627,62 +627,8 @@
 p%22);
-%0A        ParseACL.setDefaultACL(new ParseACL(), true);
 %0A%0A  

Remove default ACL