[![Rocket.Chat on Google Play](https://user-images.githubusercontent.com/551004/29770692-a20975c6-8bc6-11e7-8ab0-1cde275496e0.png)](https://play.google.com/store/apps/details?id=chat.rocket.android)
* @param userStatus The user status to show the correspondent icon.
* @see User
*/
privatevoidshowUserStatusIcon(StringuserStatus){
if(userStatus==null){
itemView.showOfflineUserStatusIcon();
}else{
switch(userStatus){
caseUser.STATUS_ONLINE:
itemView.showOnlineUserStatusIcon();
break;
caseUser.STATUS_BUSY:
itemView.showBusyUserStatusIcon();
break;
caseUser.STATUS_AWAY:
itemView.showAwayUserStatusIcon();
break;
default:
itemView.showOfflineUserStatusIcon();
break;
}
}
}
/**
* Only shows the room icon if it is a PRIVATE CHANNEL or PUBLIC CHANNEL, otherwise you should use {@link #showUserStatusIcon(String)} to show the icon.
* @param roomType The type of Room.
* @see Room
*/
privatevoidshowRoomIcon(StringroomType){
switch(roomType){
caseRoom.TYPE_CHANNEL:
itemView.showPublicChannelIcon();
break;
caseRoom.TYPE_PRIVATE:
itemView.showPrivateChannelIcon();
break;
default:
thrownewAssertionError("Room type doesn't satisfies the method documentation. Room type is:"+roomType);