Example #1
0
        public PopChat(PopClient client)
        {
            this.client   = client;
            popConnection = new PopConnection(client);

            Nothing = new NothingPopCommand(popConnection);
            User    = new UserPopCommand(popConnection);
            Pass    = new PassPopCommand(popConnection);
            Stat    = new StatPopCommand(popConnection);
            Retr    = new RetrPopCommand(popConnection);
            Quit    = new QuitPopCommand(popConnection);
            List    = new ListPopCommand(popConnection);
            Uidl    = new UidlPopCommand(popConnection);
            Dele    = new DelePopCommand(popConnection);

            new IPopCommand[] { Nothing, User, Pass, Stat, Retr, Quit, List, Uidl, Dele }.ToList().ForEach(pc => pc.PopClientLog += PopCommand_PopClientLog);
        }
Example #2
0
        public PopChat(PopClient client)
        {
            this.client = client;
            popConnection = new PopConnection(client);

            Nothing = new NothingPopCommand(popConnection);
            User = new UserPopCommand(popConnection);
            Pass = new PassPopCommand(popConnection);
            Stat = new StatPopCommand(popConnection);
            Retr = new RetrPopCommand(popConnection);
            Quit = new QuitPopCommand(popConnection);
            List = new ListPopCommand(popConnection);
            Uidl = new UidlPopCommand(popConnection);
            Dele = new DelePopCommand(popConnection);

            new IPopCommand[] { Nothing, User, Pass, Stat, Retr, Quit, List, Uidl, Dele }.ToList().ForEach(pc => pc.PopClientLog += PopCommand_PopClientLog);
        }
Example #3
0
 public BasePopCommand(PopConnection popConnection)
 {
     this.PopConnection = popConnection;
 }
 public QuitPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 public DelePopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 public UserPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 public ListPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 protected override string ExecuteInternal(object argument)
 {
     return(PopConnection.SendDele((int)argument));
 }
 public StatPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 public RetrPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 public PassPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 protected override string ExecuteInternal(object argument)
 {
     return(PopConnection.SendPass(argument as string));
 }
 public PassPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 public RetrPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 public NothingPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 public UserPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
Example #17
0
 public QuitPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 public BasePopCommand(PopConnection popConnection)
 {
     this.PopConnection = popConnection;
 }
Example #19
0
 public ListPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 public DelePopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 public UidlPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
Example #22
0
 public StatPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
 public UidlPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }