// Function
 public void Add(Get_User_Data_Object.Followers userFollowers)
 {
     try
     {
         var check = mUsersContactsList.FirstOrDefault(a => a.user_id == userFollowers.user_id);
         if (check == null)
         {
             mUsersContactsList.Add(userFollowers);
             NotifyItemInserted(mUsersContactsList.IndexOf(mUsersContactsList.Last()));
         }
     }
     catch (Exception exception)
     {
         Crashes.TrackError(exception);
     }
 }
 // Function
 public void Add(Classes.UserContacts.User userFollower)
 {
     try
     {
         var check = mMyContactsList.FirstOrDefault(a => a.user_id == userFollower.user_id);
         if (check == null)
         {
             mMyContactsList.Add(userFollower);
             NotifyItemInserted(mMyContactsList.IndexOf(mMyContactsList.Last()));
         }
     }
     catch (Exception exception)
     {
         Crashes.TrackError(exception);
     }
 }
Esempio n. 3
0
 // Function
 public void Add(Classes.UserContacts.User userFollower)
 {
     try
     {
         var check = mMyContactsList.FirstOrDefault(a => a.UserId == userFollower.UserId);
         if (check == null)
         {
             mMyContactsList.Add(userFollower);
             NotifyItemInserted(mMyContactsList.IndexOf(mMyContactsList.Last()));
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }