source: java/main/src/main/java/com/framsticks/communication/Response.java @ 77

Last change on this file since 77 was 77, checked in by psniegowski, 11 years ago

Add new java codebase.

File size: 684 bytes
Line 
1package com.framsticks.communication;
2
3import java.util.List;
4
5/**
6 * @author Piotr Sniegowski
7 */
8public class Response {
9    protected final boolean ok;
10    protected final String comment;
11    protected final List<File> files;
12
13    public Response(boolean ok, String comment, List<File> files) {
14        this.ok = ok;
15        this.comment = comment;
16        this.files = files;
17    }
18
19    public final String getComment() {
20        return comment;
21    }
22
23    public final boolean getOk() {
24        return ok;
25    }
26
27    public final List<File> getFiles() {
28        return files;
29    }
30
31    public final boolean hasFiles() {
32        return files != null && !files.isEmpty();
33    }
34}
Note: See TracBrowser for help on using the repository browser.