Example #1
0
 public static NntpResponse Date(this INntpConnection connection)
 {
     return(connection.ExecuteCommand("DATE"));
 }
        public static NntpResponse Group(this INntpConnection connection, string group)
        {
            var command = string.Format("GROUP {0}", group);

            return(connection.ExecuteCommand(command));
        }
 public static NntpResponse Next(this INntpConnection connection)
 {
     return(connection.ExecuteCommand("NEXT"));
 }
 public static NntpResponse Last(this INntpConnection connection)
 {
     return(connection.ExecuteCommand("LAST"));
 }
 public static NntpResponse Quit(this INntpConnection connection)
 {
     return(connection.ExecuteCommand("QUIT"));
 }
 public static NntpResponse ModeReader(this INntpConnection connection)
 {
     return(connection.ExecuteCommand("MODE READER"));
 }
Example #7
0
        public static NntpResponse AuthInfoUser(this INntpConnection connection, string username)
        {
            var command = string.Format("AUTHINFO USER {0}", username);

            return(connection.ExecuteCommand(command));
        }
Example #8
0
        public static NntpResponse AuthInfoPass(this INntpConnection connection, string password)
        {
            var command = string.Format("AUTHINFO PASS {0}", password);

            return(connection.ExecuteCommand(command));
        }