Esempio n. 1
0
        private static void CompleteRelations(Deanon deanon)
        {
            Logger.Out("Do you want to complete all relations?(y/n)", MessageType.Verbose);
            bool full = Console.ReadLine().ToLower().Trim() == "y";

            deanon.CompleteRelations(full).Wait();
        }
Esempio n. 2
0
        private static void BigDump(Deanon deanon, DumpingDepth depth)
        {
            Stopwatch _watches;

            _watches = StartOperation();
            deanon.InitialDump(depth).Wait();                      //7
            CompleteRelations(deanon);
            Person[] hiddenFriendsBig = deanon.GetHiddenFriends(); //8
            OutputUsers(hiddenFriendsBig);                         //9
            RestartWatchesAndShowTime(_watches, "big initial dump and complete relations");
        }
Esempio n. 3
0
        private static void SmallDump(Stopwatch _watches, Deanon deanon)
        {
            _watches = RestartWatchesAndShowTime(_watches, "startup");

            deanon.InitialDump(InitialDepth).Wait();                 //2
            CompleteRelations(deanon);
            Person[] hiddenFriendsSmall = deanon.GetHiddenFriends(); //4
            OutputUsers(hiddenFriendsSmall);                         //4

            RestartWatchesAndShowTime(_watches, "small dump initial user and complete relations");
        }
Esempio n. 4
0
        private static void ExpansionDump(Deanon deanon)
        {
            Stopwatch _watches;

            _watches = StartOperation();
            deanon.ExpansionDump(
                new DumpingDepth(
                    new List <Depth>()
            {
                new Depth(EnterType.Friend, 1),
                new Depth(EnterType.Follower, 0),
                new Depth(EnterType.Post, 0),
                new Depth(EnterType.Comments, 0),
                new Depth(EnterType.Likes, 0)
            }));                                                         //10
            CompleteRelations(deanon);
            Person[] hiddenFriendsExpansion = deanon.GetHiddenFriends(); //12
            OutputUsers(hiddenFriendsExpansion);                         //12
            RestartWatchesAndShowTime(_watches, "expansion dump and complete relations");
        }