Huaban.UWP.ViewModels.UserListViewModel.GetMaxID C# (CSharp) Method

GetMaxID() public method

public GetMaxID ( ) : long
return long
		public long GetMaxID()
		{
			long max = 0;
			if (Count > 0)
				max = Convert.ToInt64(UserList[Count - 1].user_id);
			return max;
		}

Usage Example

Esempio n. 1
0
        private async Task <IEnumerable <User> > GetLikeList(uint startIndex, int page)
        {
            UserListViewModel.UserList.NoMore();
            IsLoading = true;

            List <User> list = new List <User>();

            try
            {
                list = await PinApi.GetLikeList(Pin.pin_id, UserListViewModel.GetMaxID());

                if (list.Count == 0)
                {
                    UserListViewModel.UserList.NoMore();
                }
                else
                {
                    UserListViewModel.UserList.HasMore();
                }

                UserListViewModel.NotifyPropertyChanged("Count");
            }
            catch (Exception ex)
            {
                string a = ex.Message;
            }
            finally
            {
                IsLoading = false;
            }
            return(list);
        }
All Usage Examples Of Huaban.UWP.ViewModels.UserListViewModel::GetMaxID