/// <summary>
 /// This method verify the current data is the last element in json file, if it is the last element the method add it and return the finally list
 /// @author Jose A.
 /// </summary>
 private void ListAddRest(CookTime.REST_API_RecipeListModel.Head head)
 {
     if (head.Next != null)
     {
         CompanyListView.Add(head.Data);
         ListAdd(head.Next);
     }
     else
     {
         CompanyListView.Add(head.Data);
         ListReturn();
     }
 }
示例#2
0
 /// <summary>
 /// This method adds the Data object from the singly list to the array list of recipes that is being worked
 /// @author Jose A.
 /// </summary>
 private void RecipeListAddRest(CookTime.REST_API_RecipeListModel.Head head)
 {
     if (head.Next != null)
     {
         RecipeList.Add(head.Data);
         RecipeListAdd(head.Next);
     }
     else
     {
         RecipeList.Add(head.Data);
         RecipeListReturn();
     }
 }
示例#3
0
 /// <summary>
 /// This method adds the data object to the used arraylist for recipes
 /// @author Jose A.
 /// </summary>
 private void ListAddRest_R(CookTime.REST_API_RecipeListModel.Head head)
 {
     if (head.Next != null)
     {
         ObjectList.Add(head.Data);
         ListAdd_R(head.Next);
     }
     else
     {
         ObjectList.Add(head.Data);
         ListReturn();
     }
 }