private void MAdapterOnItemClick(object sender, LastActivitiesAdapterClickEventArgs e) { try { var item = MAdapter.GetItem(e.Position); if (item != null) { if (item.Type.Contains("liked__post") || item.Type.Contains("commented_on_post")) { if (item.PostData != null) { GlobalContext.OpenNewsFeedItem(item.PostData.Value.PostDataClass); } } else if (item.UserData != null) { AppTools.OpenProfile(Activity, item.UserId, item.UserData); } } } catch (Exception exception) { Console.WriteLine(exception); } }
private void MAdapterOnItemClick(object sender, NotificationsAdapterClickEventArgs e) { try { if (e.Position >= 0) { var item = MAdapter.GetItem(e.Position); if (item != null) { if (item.Type == "followed_u") { AppTools.OpenProfile(Activity, item.UserData.UserId.ToString(), item.UserData); } else if (item.Type == "liked_ur_post" || item.Type == "commented_ur_post" || item.Type == "mentioned_u_in_comment" || item.Type == "mentioned_u_in_post") { MainContext.OpenNewsFeedItem(item.PostData); } } } } catch (Exception exception) { Console.WriteLine(exception); } }
private void CommentsAdapter_AvatarClick(object sender, AvatarCommentAdapterClickEventArgs e) { try { AppTools.OpenProfile(Activity, e.Class.UserId.ToString(), e.Class); } catch (Exception exception) { Console.WriteLine(exception); } }
//Open Profile user public void OnAvatarImageFeedClick(AvatarFeedClickEventArgs e, string namePage) { try { AppTools.OpenProfile((HomeActivity)e.View.Context, e.NewsFeedClass.UserData.UserId.ToString(), e.NewsFeedClass.UserData); } catch (Exception exception) { Console.WriteLine(exception); } }
private void SuggestionsAdapterOnItemClick(object sender, SuggestionsAdapterClickEventArgs e) { try { var item = SuggestionsAdapter.SuggestionsList[e.Position]; if (item != null) { AppTools.OpenProfile(Activity, item.UserId.ToString(), item); } } catch (Exception exception) { Console.WriteLine(exception); } }
private void CommentsAdapter_AvatarClick(object sender, AvatarCommentAdapterClickEventArgs e) { try { if (YoutubePlayer != null && YoutubePlayer.IsPlaying) { YoutubePlayer.Pause(); } AppTools.OpenProfile(MainContext, e.Class.UserId.ToString(), e.Class); } catch (Exception exception) { Console.WriteLine(exception); } }
private void CommentsAdapter_AvatarClick(object sender, AvatarCommentAdapterClickEventArgs e) { try { if (VideoActionsController.Player != null) { VideoActionsController.Player.PlayWhenReady = false; } AppTools.OpenProfile(MainContext, e.Class.UserId.ToString(), e.Class); } catch (Exception exception) { Console.WriteLine(exception); } }
private void MAdapterOnItemClick(object sender, ContactsAdapterClickEventArgs e) { try { if (e.Position >= 0) { var item = MAdapter.GetItem(e.Position); if (item != null) { AppTools.OpenProfile(Activity, item.UserId, item); } } } catch (Exception exception) { Console.WriteLine(exception); } }
// Open Profile user private void MAdapterOnItemImageClick(object sender, AvatarNotificationsAdapterClickEventArgs e) { try { if (e.Position >= 0) { var item = MAdapter.GetItem(e.Position); if (item != null) { AppTools.OpenProfile(Activity, item.UserData.UserId.ToString(), item.UserData); } } } catch (Exception exception) { Console.WriteLine(exception); } }