Beispiel #1
0
        public RedditCommandGroup()
        {
            var context         = new RedditContext();
            var getCommand      = new GetPostCommand(context);
            var nextCommand     = new NextCommand(context);
            var previousCommand = new PreviousCommand(context);

            Commands.Add(new RedditBaseCommand(context));
            Commands.Add(getCommand);
            Commands.Add(new QuestionCommand(context));
            Commands.Add(new ForceInitRedditApiCommand(context));
            Commands.Add(new RedditApiStatusCommand(context));
            Commands.Add(nextCommand);
            Commands.Add(previousCommand);
            Commands.Add(new FeedCommand(context));

            context.GetCommand      = getCommand;
            context.NextCommand     = nextCommand;
            context.PreviousCommand = previousCommand;
        }
Beispiel #2
0
 internal RedditApiStatusCommand(RedditContext commandContext) : base(commandContext)
 {
 }
Beispiel #3
0
 internal ForceInitRedditApiCommand(RedditContext commandContext) : base(commandContext)
 {
 }
 internal QuestionCommand(RedditContext commandContext) : base(commandContext)
 {
 }
 internal NextCommand(RedditContext commandContext) : base(commandContext)
 {
 }
 internal RedditBaseCommand(RedditContext commandContext)
 {
     CommandContext = commandContext;
 }
 internal PreviousCommand(RedditContext commandContext) : base(commandContext)
 {
 }
 internal GetPostCommand(RedditContext commandContext) : base(commandContext)
 {
 }