Last change
on this file since 193 was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
766 bytes
|
Line | |
---|
1 | package com.framsticks.communication; |
---|
2 | |
---|
3 | import java.util.Arrays; |
---|
4 | import java.util.List; |
---|
5 | |
---|
6 | /** |
---|
7 | * @author Piotr Sniegowski |
---|
8 | */ |
---|
9 | public class Response { |
---|
10 | protected final boolean ok; |
---|
11 | protected final String comment; |
---|
12 | protected final List<File> files; |
---|
13 | |
---|
14 | public Response(boolean ok, String comment, File... files) { |
---|
15 | this(ok, comment, (files.length == 0 ? null : Arrays.asList(files))); |
---|
16 | } |
---|
17 | |
---|
18 | public Response(boolean ok, String comment, List<File> files) { |
---|
19 | this.ok = ok; |
---|
20 | this.comment = comment; |
---|
21 | this.files = files; |
---|
22 | } |
---|
23 | |
---|
24 | public final String getComment() { |
---|
25 | return comment; |
---|
26 | } |
---|
27 | |
---|
28 | public final boolean getOk() { |
---|
29 | return ok; |
---|
30 | } |
---|
31 | |
---|
32 | public final List<File> getFiles() { |
---|
33 | return files; |
---|
34 | } |
---|
35 | |
---|
36 | public final boolean hasFiles() { |
---|
37 | return files != null && !files.isEmpty(); |
---|
38 | } |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.