// Path: app/src/main/java/com/txusballesteros/testing/domain/model/Image.java
// public class Image {
//     private Uri url;
// 
//     private Image() { }
// 
//     public Uri getUrl() {
//         return url;
//     }
// 
//     public static class Builder {
//         private Image image;
// 
//         public Builder() {
//             this.image = new Image();
//         }
// 
//         public Builder setUrl(Uri url) {
//             image.url = url;
//             return this;
//         }
// 
//         public Image build() {
//             return image;
//         }
//     }
// }
// 
// Path: app/src/main/java/com/txusballesteros/testing/domain/repository/DashboardRepository.java
// public interface DashboardRepository {
//     void getDashboard(final Callback callback);
// 
//     interface Callback {
//         void onSuccess(final List<Image> images);
//         void onError();
//     }
// }
// 
// Path: app/src/main/java/com/txusballesteros/testing/domain/usecase/GetDashboardUseCase.java
// public interface GetDashboardUseCase {
//     void execute(final Callback callback);
// 
//     interface Callback {
//         void onDashboardReady(List<Image> images);
//         void onError();
//     }
// }
// 
// Path: app/src/main/java/com/txusballesteros/testing/threading/PostExecutionThread.java
// public interface PostExecutionThread {
//     void post(Runnable runnable);
// }
// 
// Path: app/src/main/java/com/txusballesteros/testing/threading/ThreadExecutor.java
// public interface ThreadExecutor extends Executor { }


import java.util.List;
import javax.inject.Inject;
import com.txusballesteros.testing.domain.model.Image;
import com.txusballesteros.testing.domain.repository.DashboardRepository;
import com.txusballesteros.testing.domain.usecase.GetDashboardUseCase;
import com.txusballesteros.testing.threading.PostExecutionThread;
import com.txusballesteros.testing.threading.ThreadExecutor;
/*
 * Copyright Txus Ballesteros 2016 (@txusballesteros)
 *
 * This file is part of some open source application.
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
 * Contact: Txus Ballesteros <txus.ballesteros@gmail.com>
 */
package com.txusballesteros.testing.domain.interactor;




public class GetDashboardInteractor extends AbsInteractor implements GetDashboardUseCase, Runnable {
    private final ThreadExecutor executor;
    private final PostExecutionThread postExecution;
    private final DashboardRepository repository;
    private Callback callback;

    @Inject
    public GetDashboardInteractor(ThreadExecutor executor,
// Path: app/src/main/java/com/txusballesteros/testing/domain/model/Image.java
// public class Image {
//     private Uri url;
// 
//     private Image() { }
// 
//     public Uri getUrl() {
//         return url;
//     }
// 
//     public static class Builder {
//         private Image image;
// 
//         public Builder() {
//             this.image = new Image();
//         }
// 
//         public Builder setUrl(Uri url) {
//             image.url = url;
//             return this;
//         }
// 
//         public Image build() {
//             return image;
//         }
//     }
// }
// 
// Path: app/src/main/java/com/txusballesteros/testing/domain/repository/DashboardRepository.java
// public interface DashboardRepository {
//     void getDashboard(final Callback callback);
// 
//     interface Callback {
//         void onSuccess(final List<Image> images);
//         void onError();
//     }
// }
// 
// Path: app/src/main/java/com/txusballesteros/testing/domain/usecase/GetDashboardUseCase.java
// public interface GetDashboardUseCase {
//     void execute(final Callback callback);
// 
//     interface Callback {
//         void onDashboardReady(List<Image> images);
//         void onError();
//     }
// }
// 
// Path: app/src/main/java/com/txusballesteros/testing/threading/PostExecutionThread.java
// public interface PostExecutionThread {
//     void post(Runnable runnable);
// }
// 
// Path: app/src/main/java/com/txusballesteros/testing/threading/ThreadExecutor.java
// public interface ThreadExecutor extends Executor { }


// Path: app/src/main/java/com/txusballesteros/testing/domain/interactor/GetDashboardInteractor.java
import java.util.List;
import javax.inject.Inject;
import com.txusballesteros.testing.domain.model.Image;
import com.txusballesteros.testing.domain.repository.DashboardRepository;
import com.txusballesteros.testing.domain.usecase.GetDashboardUseCase;
import com.txusballesteros.testing.threading.PostExecutionThread;
import com.txusballesteros.testing.threading.ThreadExecutor;

/*
 * Copyright Txus Ballesteros 2016 (@txusballesteros)
 *
 * This file is part of some open source application.
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
 * Contact: Txus Ballesteros <txus.ballesteros@gmail.com>
 */
package com.txusballesteros.testing.domain.interactor;




public class GetDashboardInteractor extends AbsInteractor implements GetDashboardUseCase, Runnable {
    private final ThreadExecutor executor;
    private final PostExecutionThread postExecution;
    private final DashboardRepository repository;
    private Callback callback;

    @Inject
    public GetDashboardInteractor(ThreadExecutor executor,
                                  PostExecutionThread postExecution,