// Path: app/src/main/java/io/github/droidkaigi/confsched2017/model/MySession.java
// @Table
// public class MySession {
// 
//     @PrimaryKey
//     @Column(indexed = true)
//     @SerializedName("id")
//     public int id;
// 
//     @Column(indexed = true, unique = true)
//     @SerializedName("session")
//     public Session session;
// 
//     public MySession() {
//     }
// 
//     public MySession(@NonNull Session session) {
//         this.session = session;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         return o instanceof MySession && ((MySession) o).id == id || super.equals(o);
//     }
// 
//     @Override
//     public int hashCode() {
//         return id;
//     }
// }


import android.support.annotation.NonNull;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import javax.inject.Singleton;
import io.github.droidkaigi.confsched2017.model.MySession;
import io.github.droidkaigi.confsched2017.model.Session;
import io.reactivex.Completable;
import io.reactivex.Single;
package io.github.droidkaigi.confsched2017.repository.sessions;





@Singleton
public class MySessionsRepository implements MySessionsDataSource {

    private final MySessionsDataSource localDataSource;

// Path: app/src/main/java/io/github/droidkaigi/confsched2017/model/MySession.java
// @Table
// public class MySession {
// 
//     @PrimaryKey
//     @Column(indexed = true)
//     @SerializedName("id")
//     public int id;
// 
//     @Column(indexed = true, unique = true)
//     @SerializedName("session")
//     public Session session;
// 
//     public MySession() {
//     }
// 
//     public MySession(@NonNull Session session) {
//         this.session = session;
//     }
// 
//     @Override
//     public boolean equals(Object o) {
//         return o instanceof MySession && ((MySession) o).id == id || super.equals(o);
//     }
// 
//     @Override
//     public int hashCode() {
//         return id;
//     }
// }


// Path: app/src/main/java/io/github/droidkaigi/confsched2017/repository/sessions/MySessionsRepository.java
import android.support.annotation.NonNull;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import javax.inject.Singleton;
import io.github.droidkaigi.confsched2017.model.MySession;
import io.github.droidkaigi.confsched2017.model.Session;
import io.reactivex.Completable;
import io.reactivex.Single;

package io.github.droidkaigi.confsched2017.repository.sessions;





@Singleton
public class MySessionsRepository implements MySessionsDataSource {

    private final MySessionsDataSource localDataSource;

    private Map<Integer, MySession> cachedMySessions;