/// <summary>
 /// Travels the list to add data to the array list
 /// @author Mauricio C.
 /// </summary>
 private void ListAddRest_U(CookTime.REST_API_UserListModel.Head head)
 {
     if (head.Next != null)
     {
         ObjectList.Add(head.Data);
         ListAdd_U(head.Next);
     }
     else
     {
         ObjectList.Add(head.Data);
         ListReturn();
     }
 }
Example #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 UserListAddRest(CookTime.REST_API_UserListModel.Head head)
 {
     if (head.Next != null)
     {
         UserList.Add(head.Data);
         UserListAdd(head.Next);
     }
     else
     {
         UserList.Add(head.Data);
         UserListReturn();
     }
 }