private void SetPostImage(Notification notification, WebImage postImage) { if (notification.post == null || !notification.post.hasImage) { postImage.Visibility = ViewStates.Gone; } else { postImage.Visibility = ViewStates.Visible; postImage.BindDataToView(notification.post); } }
private void SetPostUserImageAndUsername(NotificationFeedFragment Master, int containerId, Notification notification, WebImage userImage, TextView username) { if (notification.type == Strings.following) { userImage.BindDataToView(Master.FragmentManager, Resource.Id.fragment_container_page, notification.post.userPoster, true, false, null); } else { userImage.BindDataToView(Master.FragmentManager, Resource.Id.fragment_container_page, notification.user, true, false, null); } username.Text = notification.user.username; if (!username.HasOnClickListeners) { username.Click += (sender, e) => { TenServiceHelper.GoToGuestProfile(Master.FragmentManager, containerId, notification.user); }; } }