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
public interface ProfessorsListView { | |
void showProfessors(ProfessorsViewModel professors); | |
void goToProfessorDetail(ProfessorViewModel professor); | |
} |
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
interface ProfessorsListView : LoadingView { | |
val adapter: Adapter<ProfessorViewModel> | |
val ctx: Context | |
fun showProfessors(professors: ProfessorsViewModel) { | |
adapter.clearAll() | |
adapter.addAll(professors) | |
adapter.notifyDataSetChanged() | |
} |
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
interface SubjectsListView : LoadingView { | |
val adapter: Adapter<SubjectViewModel> | |
val ctx: Context | |
fun showSubjects(subjects: SubjectsViewModel) { | |
adapter.clearAll() | |
adapter.addAll(subjects) | |
adapter.notifyDataSetChanged() | |
} |
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
interface ListView<T> : LoadingView { | |
val adapter: Adapter<in T> | |
fun showItems(items: Iterable<T>) { | |
adapter.clearAll() | |
adapter.addAll(items) | |
adapter.notifyDataSetChanged() | |
} |
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
interface ProfessorsListView : ListView<ProfessorViewModel> { | |
val ctx: Context | |
fun showProfessors(professors: ProfessorsViewModel) { | |
showItems(professors) | |
} | |
fun showMoreProfessors(professors: ProfessorsViewModel) { | |
showMoreItems(professors) |
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
import Foundation | |
private protocol ProfessorsModuleAssembler { | |
func resolve() -> ProfessorsViewController | |
func resolve() -> ProfessorsInteractorInput | |
func resolve() -> ProfessorsPresenter | |
func resolve() -> ProfessorsRouterProtocol | |
} | |
protocol ProfessorsModule { | |
func resolve() -> ProfessorsViewController |
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
import Foundation | |
import UIKit | |
protocol CommonAssembler { | |
func resolve() -> LocalRepository | |
func resolve() -> ProfessorRepository | |
func resolve() -> SubjectRepository | |
func resolve() -> CareerRepository | |
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
import Foundation | |
import UIKit | |
protocol CommonAssembler { | |
func resolve() -> LocalRepository | |
func resolve() -> ProfessorRepository | |
func resolve() -> SubjectRepository | |
func resolve() -> CareerRepository | |
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
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
compile "org.jetbrains.anko:anko-sdk15:0.9.1" | |
} |
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
allprojects { | |
repositories { | |
jcenter() | |
maven { | |
url "http://dl.bintray.com/kotlin/kotlin-eap-1.1" | |
} | |
mavenCentral() | |
maven { url "https://jitpack.io" } | |
maven { url 'https://maven.fabric.io/public' } | |
maven { url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo' } |
OlderNewer