GeezerVison is showing github.com — Merge branch 'master' into okhttp-3.6.0 · flicker420/java-sdk@0bd210a
File tree
Expand file treeCollapse file tree
Open diff view settings
main/java/com/ibm/watson/developer_cloud/conversation/v1 test/java/com/ibm/watson/developer_cloud/conversation/v1
examples/java/com/ibm/watson/developer_cloud/conversation/v1
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: conversation/src/main/java/com/ibm/watson/developer_cloud/conversation/v1/ConversationService.java +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
30 | 30 | */ |
31 | 31 | public final class ConversationService extends WatsonService { |
32 | 32 |
|
| 33 | + /** The Constant VERSION_DATE_2017-02-03. */ |
| 34 | + public static final String VERSION_DATE_2017_02_03 = "2017-02-03"; |
33 | 35 | /** The Constant VERSION_DATE_2016-09-20. */ |
34 | 36 | public static final String VERSION_DATE_2016_09_20 = "2016-09-20"; |
35 | 37 | /** The Constant VERSION_DATE_2016-07-11. */ |
@@ -53,7 +55,7 @@ public ConversationService(final String versionDate) { |
53 | 55 | } |
54 | 56 |
|
55 | 57 | Validator.isTrue((versionDate != null) && !versionDate.isEmpty(), |
56 | | - "'version cannot be null. Use " + VERSION_DATE_2016_09_20); |
| 58 | + "'version cannot be null. Use " + VERSION_DATE_2017_02_03); |
57 | 59 | this.versionDate = versionDate; |
58 | 60 | } |
59 | 61 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: conversation/src/test/java/com/ibm/watson/developer_cloud/conversation/v1/ConversationTest.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -54,7 +54,7 @@ public class ConversationTest extends WatsonServiceUnitTest { |
54 | 54 | @Before |
55 | 55 | public void setUp() throws Exception { |
56 | 56 | super.setUp(); |
57 | | - service = new ConversationService(ConversationService.VERSION_DATE_2016_09_20); |
| 57 | + service = new ConversationService(ConversationService.VERSION_DATE_2017_02_03); |
58 | 58 | service.setApiKey(EMPTY); |
59 | 59 | service.setEndPoint(getMockWebServerUrl()); |
60 | 60 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: examples/java/com/ibm/watson/developer_cloud/conversation/v1/ConversationExample.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
29 | 29 | public class ConversationExample { |
30 | 30 |
|
31 | 31 | public static void main(String[] args) throws Exception { |
32 | | - ConversationService service = new ConversationService(ConversationService.VERSION_DATE_2016_07_11); |
| 32 | + ConversationService service = new ConversationService(ConversationService.VERSION_DATE_2017_02_03); |
33 | 33 | service.setUsernameAndPassword("<username>", "<password>"); |
34 | 34 |
|
35 | 35 | // sync |
|