990ef2bf5955639d058f440778c84116afaa05af
[doldaconnect.git] / lib / java / dolda / dolcon / protocol / Response.java
1 package dolda.dolcon.protocol;
2
3 import java.util.*;
4
5 public class Response {
6     List<List<String>> lines;
7     Command cmd;
8     int code;
9     
10     public Response(int code, List<List<String>> lines) {
11         this.code = code;
12         this.lines = lines;
13     }
14     
15     public String toString() {
16         return("Response " + code + ": " + lines.toString());
17     }
18     
19     public String token(int line, int token) {
20         return(lines.get(line).get(token));
21     }
22 }