1 | void setRandomPath(String path) {↵ | | 1 | void setMessageChoice(String choice) {↵
|
2 | setProperty(RANDOM_PATH, path);↵ | | 2 | setProperty(MESSAGE_CHOICE, choice);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * return the random path for messages↵ | | 5 | * return the source of the message↵
|
6 | * ↵ | | 6 | * ↵
|
7 | */↵ | | 7 | */↵
|
8 | public String getRandomPath() {↵ | | 8 | public String getMessageChoice() {↵
|
9 | return getPropertyAsString(RANDOM_PATH);↵ | | 9 | return getPropertyAsString(MESSAGE_CHOICE);↵
|
10 | }↵ | | 10 | }↵
|
|
11 | /**↵ | | 11 | /**↵
|
12 | * set the text for the message↵ | | 12 | * set the input file for the publisher↵
|
13 | * ↵ | | 13 | * ↵
|
14 | * @param message↵ | | 14 | * @param file↵
|
15 | */↵ | | 15 | */↵
|
16 | public void setTextMessage(String message) {↵ | | 16 | public void setInputFile(String file) {↵
|
17 | setProperty(TEXT_MSG, message);↵ | | 17 | setProperty(INPUT_FILE, file);↵
|
18 | }↵ | | 18 | }↵
|
|
19 | /**↵ | | 19 | /**↵
|
20 | * return the text for the message↵ | | 20 | * return the path of the input file↵
|
21 | * ↵ | | 21 | * ↵
|
22 | */↵ | | 22 | */↵
|
23 | public String getTextMessage() {↵ | | 23 | public String getInputFile() {↵
|
24 | return getPropertyAsString(TEXT_MSG);↵ | | 24 | return getPropertyAsString(INPUT_FILE);↵
|
25 | | | 25 |
|