-
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.
- Loading branch information
Showing
11 changed files
with
421 additions
and
112 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
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
34 changes: 34 additions & 0 deletions
34
app/src/main/java/com/iamwent/gank/ui/search/SearchContract.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.iamwent.gank.ui.search; | ||
|
||
import android.support.annotation.NonNull; | ||
|
||
import com.iamwent.gank.data.bean.Gank; | ||
import com.iamwent.gank.data.bean.Search; | ||
import com.iamwent.gank.ui.base.BasePresenter; | ||
import com.iamwent.gank.ui.base.BaseView; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Created by iamwent on 24/02/2017. | ||
* | ||
* @author iamwent | ||
* @since 24/02/2017 | ||
*/ | ||
|
||
interface SearchContract { | ||
|
||
interface View extends BaseView { | ||
void changeProgress(boolean isShow); | ||
|
||
void error(); | ||
|
||
void showSearchResults(List<Search> results); | ||
} | ||
|
||
interface Presenter extends BasePresenter { | ||
void search(@NonNull String key, @NonNull String type); | ||
|
||
void loadMore(); | ||
} | ||
} |
Oops, something went wrong.