Skip to content

Instantly share code, notes, and snippets.

Burak Eregar burakeregar

Block or report user

Report or block burakeregar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Student.kt
@Parcelize
data class Student(val id: String, val name: String, val grade: String) : Parcelable
View Student.java
public class Student implements Parcelable{
private String id;
private String name;
private String grade;
// Constructor
public Student(String id, String name, String grade){
this.id = id;
this.name = name;
this.grade = grade;
View PersonModel.kt
package com.burakeregar.kotlinparcelize
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
/**
* Created by Burak Eregar on 1.12.2017.
* burakeregar@gmail.com
* https://github.com/burakeregar
*/
View HomePresenterTest.kt
package com.burakeregar.githubsearch.home.presenter
import com.burakeregar.githubsearch.api.Endpoints
import com.burakeregar.githubsearch.home.model.RepoItem
import com.burakeregar.githubsearch.home.model.RepoResponse
import com.nhaarman.mockito_kotlin.doReturn
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.verify
import com.util.TestSchedulerProvider
import io.reactivex.Observable
@burakeregar
burakeregar / TestSchedulerProvider.kt
Created Nov 28, 2017
Scheduler Injection in Testing
View TestSchedulerProvider.kt
package com.util
import com.base.util.SchedulerProvider
import io.reactivex.Scheduler
import io.reactivex.schedulers.TestScheduler
/**
* Created by Burak Eregar on 18.11.2017.
* burakeregar@gmail.com
* https://github.com/burakeregar
View HomeActivity.kt
package com.burakeregar.kotlinmvparchitecture.home
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import com.base.BaseActivity
import com.burakeregar.kotlinmvparchitecture.R
import com.burakeregar.kotlinmvparchitecture.home.di.DaggerHomeActivityComponent
import com.burakeregar.kotlinmvparchitecture.home.di.HomeActivityModule
import com.burakeregar.kotlinmvparchitecture.home.model.MarsPhotos
import com.burakeregar.kotlinmvparchitecture.home.model.MarsItem
View MarsViewHolder.kt
package com.burakeregar.kotlinmvparchitecture.home.viewholder
import android.view.View
import com.burakeregar.kotlinmvparchitecture.home.model.MarsItem
import com.burakeregar.easiestgenericrecycleradapter.base.GenericViewHolder
import kotlinx.android.synthetic.main.row_mars.view.*
import org.greenrobot.eventbus.EventBus
/**
* Created by Burak Eregar on 23.05.2017.
View AppModule.kt
package com.base.di.module
import android.app.Application
import android.content.res.Resources
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
import com.google.gson.Gson;
import com.google.gson.GsonBuilder
View AppComponent.kt
package com.base.di.component
import android.app.Application
import android.content.res.Resources
import com.base.di.module.ApiModule
import com.base.di.module.AppModule
import com.base.di.module.RetrofitModule
import com.burakeregar.kotlinmvparchitecture.api.Endpoints
import com.google.gson.Gson
import dagger.Component
You can’t perform that action at this time.