forked from saulmm/Material-Movies
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored RestMovieSource, MediaDataSource & ConfigurationUsecase
- Loading branch information
Showing
5 changed files
with
33 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 5 additions & 10 deletions
15
HackVG/model/src/main/java/com/hackvg/model/MediaDataSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,25 @@ | ||
package com.hackvg.model; | ||
|
||
/** | ||
* Created by saulmm on 31/01/15. | ||
*/ | ||
public interface MediaDataSource { | ||
|
||
public void getShows (); | ||
void getMovies(); | ||
|
||
public void getMovies(); | ||
|
||
public void getDetailMovie (String id); | ||
void getDetailMovie (String id); | ||
|
||
/** | ||
* Get the reviews for a particular movie id. | ||
* | ||
* @param id movie id | ||
*/ | ||
public void getReviews (String id); | ||
void getReviews (String id); | ||
|
||
public void getConfiguration (); | ||
void getConfiguration (); | ||
|
||
/** | ||
* Get a list of images represented by a MoviesWrapper | ||
* class | ||
* | ||
* @param movieId the movie id | ||
*/ | ||
public void getImages (String movieId); | ||
void getImages (String movieId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters