/// <summary>
 /// Travels the list to add data to the array list
 /// @author Mauricio C.
 /// </summary>
 private void ListAdd_U(CookTime.REST_API_UserListModel.Next next)
 {
     if (next.NextNext != null)
     {
         ObjectList.Add(next.Data);
         ListAddRest_U(next.NextNext);
     }
     else
     {
         ObjectList.Add(next.Data);
         ListReturn();
     }
 }
Пример #2
0
 /// <summary>
 /// This method adds the Data object from the singly list to the array list of users that is being worked
 /// @author Jose A.
 /// </summary>
 private void UserListAdd(CookTime.REST_API_UserListModel.Next next)
 {
     if (next.NextNext != null)
     {
         UserList.Add(next.Data);
         UserListAddRest(next.NextNext);
     }
     else
     {
         UserList.Add(next.Data);
         UserListReturn();
     }
 }