package mn.devfest.persistence;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;

import mn.devfest.api.model.Conference;

/**
 * Stores and provides information about the conference. The app is shipped with a local copy of
 * the latest conference information. As we get newer information from the API, this is updated.
 *
 * @author pfuentes
 */
public class ConferenceRepository {

    Context mContext;
    SharedPreferences mSharedPreferences;

    public ConferenceRepository (@NonNull Context context){
        mContext = context;
        mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(mContext);
    }

    public void setConference(Conference conference) {
        //TODO implement
    }

    public Conference getConference() {
        //TODO implement and remove dummy return
        return new Conference();
    }

}

@@ -187,16 +187,60 @@
 NonNull;
+%0Aimport android.support.annotation.Nullable;
 %0A%0Aimport
@@ -632,17 +632,16 @@
 pository
- 
 (@NonNul
@@ -658,16 +658,17 @@
 context)
+ 
 %7B%0A      
@@ -774,32 +774,221 @@
 ontext);%0A    %7D%0A%0A
+    /**%0A     * Removes any existing persisted conference data and replaces it with the passed value%0A     *%0A     * @param conference most up-to-date conference information available%0A     */%0A
     public void 
@@ -1001,16 +1001,26 @@
 ference(
+@Nullable 
 Conferen
@@ -1064,24 +1064,161 @@
 ment%0A    %7D%0A%0A
+    /**%0A     * Provides the most recently persisted conference data%0A     *%0A     * @return persisted conference data%0A     */%0A    @NonNull%0A
     public C

Document methods in conference repository