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
package gitit.com.gitit.service.contract; | |
/** | |
* 2015 | |
* Created by ho on 05/08/15. | |
*/ | |
public class Comment { | |
public User user; | |
public String body; |
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
package com.example.hokanla.rxplayground; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.mockito.Mock; | |
import org.mockito.MockitoAnnotations; | |
import rx.Observable; | |
import rx.Subscription; | |
import rx.subjects.PublishSubject; |
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
data class User( | |
val id: String, | |
val name: String, | |
val profilePicUrl: String, | |
val bio: String) |
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
data class User( | |
val id: String, | |
val name: String, | |
val profilePicUrl: String, | |
val bio: String) |
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
data class UserFragmentStateData( | |
val title: String, | |
val description:String, | |
val picture: String, | |
val imagePlaceholder: Int) |
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
data class DetailsHeaderState( | |
val title: String, | |
val bgColor: Int, | |
val picture: String) |
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
data class DetailsListItemState( | |
val title: String, | |
val formattedDate: String) | |
data class DetailsListItemIconState( | |
val icon: Int, | |
val iconColorFilter: Int) | |
data class DetailsListItemIconProgressState( | |
val subText: String, |
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
data class DetailsListState( | |
val listContents: List<DetailsListItemState>) |
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
data class PlayerHandleMetaState( | |
val title:String, | |
val subText:String, | |
val picture:String, | |
val bgColor:Int) | |
data class PlayerHandleIconState( | |
val icon:Int, | |
val iconColorFilter:Int) |
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
class PanelHandleViewModel { | |
// Gives us player status information | |
private lateinit var player: Player | |
// Multicasts emissions of what's currently selected for playback. | |
private lateinit var provider: PodcastProvider | |
fun handleMetaState(): Observable<PlayerHandleMetaState> { | |
return provider.currentlyPlaying() | |
.map { podcast -> | |
//Convert your model into information relevant to the View. |
OlderNewer