Exemple #1
0
        public void Run(IRunnerModel model)
        {
            var account = model.Account;
            var friend  = model.Friend;

            new FriendsService(new NoticeService()).RemoveFriend(account.Id, friend.Id);
        }
Exemple #2
0
        public void Run(IRunnerModel model)
        {
            var account = model.Account;

            var forSpy = model.ForSpy;

            new CookieService().RefreshCookies(account, forSpy, new BackgroundJobService());
        }
Exemple #3
0
        public void Run(IRunnerModel model)
        {
            var account = model.Account;

            var service = new FriendsService(new NoticeService());

            service.GetCurrentFriends(account);
        }
Exemple #4
0
        public void Run(IRunnerModel model)
        {
            var account = model.Account;

            new GroupService(new NoticeService()).InviteToPage(account);
        }
Exemple #5
0
        public void Run(IRunnerModel model)
        {
            var account = model.Account;

            new SpyService(new JobService()).AnalyzeFriends(account);
        }
        public void Run(IRunnerModel model)
        {
            var account = model.Account;

            new FacebookMessagesService(new NoticeService()).SendMessageToUnanswered(account);
        }
Exemple #7
0
        public void Run(IRunnerModel model)
        {
            var account = model.Account;

            new WinksService(new NoticeService()).WinkFriend(account);
        }
Exemple #8
0
        public void RunService(FunctionName functionName, IRunnerModel model)
        {
            RunnerContext context;

            switch (functionName)
            {
            case FunctionName.SendMessageToNewFriends:
            {
                context = new RunnerContext(new SendMessageToNewFriendsRunner());
                break;
            }

            case FunctionName.SendMessageToUnanswered:
            {
                context = new RunnerContext(new SendMessageToUnansweredRunner());
                break;
            }

            case FunctionName.SendMessageToUnread:
            {
                context = new RunnerContext(new SendMessageToUnreadRunner());
                break;
            }

            case FunctionName.RefreshFriends:
            {
                context = new RunnerContext(new RefreshFriendsRunner());
                break;
            }

            case FunctionName.GetNewFriendsAndRecommended:
            {
                context = new RunnerContext(new GetNewFriendsAndRecommendedRunner());
                break;
            }

            case FunctionName.ConfirmFriendship:
            {
                context = new RunnerContext(new ConfirmFriendshipRunner());
                break;
            }

            case FunctionName.SendRequestFriendship:
            {
                context = new RunnerContext(new SendRequestFriendshipRunner());
                break;
            }

            case FunctionName.RefreshCookies:
            {
                context = new RunnerContext(new RefreshCookiesRunner());
                break;
            }

            case FunctionName.JoinTheNewGroupsAndPages:
            {
                context = new RunnerContext(new JoinTheNewGroupsAndPagesRunner());
                break;
            }

            case FunctionName.InviteToGroups:
            {
                context = new RunnerContext(new InvaitTheNewGroupRunner());
                break;
            }

            case FunctionName.InviteToPages:
            {
                context = new RunnerContext(new InvaitTheNewPageRunner());
                break;
            }

            case FunctionName.RemoveFromFriends:
            {
                context = new RunnerContext(new InvaitTheNewPageRunner());
                break;
            }

            case FunctionName.Wink:
            {
                context = new RunnerContext(new WinkFriendsRunner());
                break;
            }

            case FunctionName.AnalyzeFriends:
            {
                context = new RunnerContext(new AnalyzeFriendsRunner());
                break;
            }

            case FunctionName.WinkFriendFriends:
            {
                context = new RunnerContext(new WinkFriendsFriendsRunner());
                break;
            }

            case FunctionName.CheckFriendsAtTheEndTimeConditions:
            {
                context = new RunnerContext(new CheckFriendsAtTheEndTimeConditionsRunner());
                break;
            }

            case FunctionName.WinkBack:
            {
                context = new RunnerContext(new WinkBackRunner());
                break;
            }

            default:
            {
                throw new ArgumentOutOfRangeException("functionName");
            }
            }

            context.Execute(model);
        }
        public void Run(IRunnerModel model)
        {
            var account = model.Account;

            new FriendsService(new NoticeService()).SendRequestFriendship(account);
        }
Exemple #10
0
        public void Run(IRunnerModel model)
        {
            var account = model.Account;

            new FriendsService(new NoticeService()).GetNewFriendsAndRecommended(account, new BackgroundJobService());
        }
        public void Run(IRunnerModel model)
        {
            var account = model.Account;

            new GroupService(new NoticeService()).JoinTheNewGroupsAndPages(account);
        }
Exemple #12
0
        public void Run(IRunnerModel model)
        {
            var account = model.Account;

            new FriendsService(new NoticeService()).CheckFriendsAtTheEndTimeConditions(account);
        }
Exemple #13
0
 public void Execute(IRunnerModel model)
 {
     _runner.Run(model);
 }