// Path: app/src/main/java/com/daksh/tmdbsample/data/source/local/AppSettings.java
// public interface AppSettings {
// 
//     SortOrder getSortOrder();
// 
//     void setSortOrder(SortOrder sortOrder);
// }
// 
// Path: app/src/main/java/com/daksh/tmdbsample/data/source/local/AppSettingsImpl.java
// public class AppSettingsImpl implements AppSettings {
// 
//     private static final String FILE_APP_SETTINGS = "APP_SETTINGS";
// 
//     private static final String SORT_ORDER = "SORT_ORDER";
// 
//     private SharedPreferences sharedPreferences;
// 
//     public AppSettingsImpl(Context context) {
//         sharedPreferences = context.getSharedPreferences(FILE_APP_SETTINGS, Context.MODE_PRIVATE);
//     }
// 
//     @SuppressWarnings("WrongConstant")
//     @Override
//     public SortOrder getSortOrder() {
//         return new SortOrder(sharedPreferences.getInt(SORT_ORDER, SortOrder.POPULAR));
//     }
// 
//     @Override
//     public void setSortOrder(SortOrder sortOrder) {
//         sharedPreferences
//                 .edit()
//                 .putInt(SORT_ORDER, sortOrder.value)
//                 .apply();
//     }
// }


import android.content.Context;
import com.daksh.tmdbsample.data.source.local.AppSettings;
import com.daksh.tmdbsample.data.source.local.AppSettingsImpl;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
package com.daksh.tmdbsample.di.module;





/**
 * Created by daksh on 03-Sep-16.
 */

@Module
public class StorageModule {

// Path: app/src/main/java/com/daksh/tmdbsample/data/source/local/AppSettings.java
// public interface AppSettings {
// 
//     SortOrder getSortOrder();
// 
//     void setSortOrder(SortOrder sortOrder);
// }
// 
// Path: app/src/main/java/com/daksh/tmdbsample/data/source/local/AppSettingsImpl.java
// public class AppSettingsImpl implements AppSettings {
// 
//     private static final String FILE_APP_SETTINGS = "APP_SETTINGS";
// 
//     private static final String SORT_ORDER = "SORT_ORDER";
// 
//     private SharedPreferences sharedPreferences;
// 
//     public AppSettingsImpl(Context context) {
//         sharedPreferences = context.getSharedPreferences(FILE_APP_SETTINGS, Context.MODE_PRIVATE);
//     }
// 
//     @SuppressWarnings("WrongConstant")
//     @Override
//     public SortOrder getSortOrder() {
//         return new SortOrder(sharedPreferences.getInt(SORT_ORDER, SortOrder.POPULAR));
//     }
// 
//     @Override
//     public void setSortOrder(SortOrder sortOrder) {
//         sharedPreferences
//                 .edit()
//                 .putInt(SORT_ORDER, sortOrder.value)
//                 .apply();
//     }
// }


// Path: app/src/main/java/com/daksh/tmdbsample/di/module/StorageModule.java
import android.content.Context;
import com.daksh.tmdbsample.data.source.local.AppSettings;
import com.daksh.tmdbsample.data.source.local.AppSettingsImpl;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;

package com.daksh.tmdbsample.di.module;





/**
 * Created by daksh on 03-Sep-16.
 */

@Module
public class StorageModule {

    @Provides