예제 #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);
        }
예제 #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);
        }
예제 #3
0
 public BasePopCommand(PopConnection popConnection)
 {
     this.PopConnection = popConnection;
 }
예제 #4
0
 public QuitPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #5
0
 public DelePopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #6
0
 public UserPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #7
0
 public ListPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #8
0
 protected override string ExecuteInternal(object argument)
 {
     return(PopConnection.SendDele((int)argument));
 }
예제 #9
0
 public StatPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #10
0
 public RetrPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #11
0
 public PassPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #12
0
 protected override string ExecuteInternal(object argument)
 {
     return(PopConnection.SendPass(argument as string));
 }
예제 #13
0
 public PassPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #14
0
 public RetrPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #15
0
 public NothingPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #16
0
 public UserPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #17
0
 public QuitPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #18
0
 public BasePopCommand(PopConnection popConnection)
 {
     this.PopConnection = popConnection;
 }
예제 #19
0
 public ListPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #20
0
 public DelePopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #21
0
 public UidlPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #22
0
 public StatPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }
예제 #23
0
 public UidlPopCommand(PopConnection popConnection)
     : base(popConnection)
 {
 }