Ejemplo n.º 1
0
        public void DeletePlannedActionWithLocation()
        {
            api = Login();
            var deleteInstance = new ActionWithLocation();

            var NumberOfPages = GetNumberOfPages();

            for (int i = 0; i <= NumberOfPages; i++)
            {
                var percentage = Math.Round(i * 100 / NumberOfPages);
                var skip       = take * i;

                Console.WriteLine($"{percentage}% Completed...");
                deleteInstance.DeletePlannedActioWithLocation(api, take, skip, fromDate, toDate);
            }
        }
Ejemplo n.º 2
0
        public List <Trackmatic.Rest.Planning.Model.Action> GetPlannedActionsWithLocation(SiteData forSite)
        {
            var api = Login(forSite);
            var actionWithLocation = new ActionWithLocation();
            var actionList         = new List <Trackmatic.Rest.Planning.Model.Action>();

            var NumberOfPages = GetNumberOfPages(api);

            for (int i = 0; i <= NumberOfPages; i++)
            {
                var percentage = Math.Round(i * 100 / NumberOfPages);
                var skip       = take * i;

                Console.WriteLine($"{percentage}% Completed...");
                actionList.AddRange(actionWithLocation.RetrivePlannedActions(api, take, skip, fromDate, toDate));
            }
            return(actionList);
        }