// Path: app/src/main/java/com/photoviewer/data/entity/PhotoStatisticsEntity.java
// @Accessors(prefix = "m")
// @PreferenceFile(name = "photos_opening_statistics")
// public class PhotoStatisticsEntity {
// 
//     @Setter
//     @Getter
//     @Preference(name = "last_opened_photo_id")
//     private int mLastOpenedPhotoId;
// 
//     @Setter
//     @Getter
//     @Preference(name = "opened_photos_count")
//     private int mOpenedPhotosCount;
// }


import com.photoviewer.data.entity.PhotoStatisticsEntity;
import rx.Observable;
package com.photoviewer.domain.repository;



public interface PhotoStatisticsRepository {
    /**
     * Get an {@link rx.Observable} which will emit {@link PhotoStatisticsEntity}.
     */
    Observable<PhotoStatisticsEntity> readStatistics();

    /**
     * Get an {@link rx.Observable} which will emit {@link PhotoStatisticsEntity}.
     */
// Path: app/src/main/java/com/photoviewer/data/entity/PhotoStatisticsEntity.java
// @Accessors(prefix = "m")
// @PreferenceFile(name = "photos_opening_statistics")
// public class PhotoStatisticsEntity {
// 
//     @Setter
//     @Getter
//     @Preference(name = "last_opened_photo_id")
//     private int mLastOpenedPhotoId;
// 
//     @Setter
//     @Getter
//     @Preference(name = "opened_photos_count")
//     private int mOpenedPhotosCount;
// }


// Path: app/src/main/java/com/photoviewer/domain/repository/PhotoStatisticsRepository.java
import com.photoviewer.data.entity.PhotoStatisticsEntity;
import rx.Observable;

package com.photoviewer.domain.repository;



public interface PhotoStatisticsRepository {
    /**
     * Get an {@link rx.Observable} which will emit {@link PhotoStatisticsEntity}.
     */
    Observable<PhotoStatisticsEntity> readStatistics();

    /**
     * Get an {@link rx.Observable} which will emit {@link PhotoStatisticsEntity}.
     */
    Observable<PhotoStatisticsEntity> updateStatistics(PhotoStatisticsEntity photoStatisticsEntity);