Permalink
Browse files

Data class

  • Loading branch information...
imuhao committed Nov 5, 2017
1 parent 8367173 commit cc01da4eebb3a7820bfcb921cc96c91b06603365
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/src/main/kotlin/com/caimuhao/kedditbysteps/fatures/news/RedditNewsItem.kt
@@ -1,9 +1,13 @@
package com.caimuhao.kedditbysteps.fatures.news
import com.caimuhao.kedditbysteps.commons.adapter.AdapterConstants
import com.caimuhao.kedditbysteps.commons.adapter.ViewType
/**
* @author Smile
* @time 2017/11/5 17:34
* @desc ${TODD}
*/
data class RedditNewsItem(var author: String, var title: String) {
data class RedditNewsItem(var author: String, var title: String) : ViewType {
override fun getViewType() = AdapterConstants.NEWS
}

0 comments on commit cc01da4

Please sign in to comment.