source: gs3-extensions/atea-nlp-tools/trunk/src/koreromaori-proxy/src/main/java/org/atea/nlptools/koreromaoriinterface/models/MyTranscriptionResponse.java@ 35239

Last change on this file since 35239 was 35239, checked in by davidb, 3 years ago

Adding proxy servlet for the Korero Maori Reo Tuhituhi API (initail commit)

File size: 1.2 KB
Line 
1package org.atea.nlptools.koreromaoriinterface.models;
2
3public class MyTranscriptionResponse {
4 private String fileName;
5 private String transcription;
6 private TranscriptionResultMetadata[] metadata;
7 private Boolean success;
8
9 public String getFileName() {
10 return fileName;
11 }
12
13 public void setFileName(String value) {
14 fileName = value;
15 }
16
17 public String getTranscription() {
18 return transcription;
19 }
20
21 public void setTranscription(String value) {
22 transcription = value;
23 }
24
25 public TranscriptionResultMetadata[] getMetadata() {
26 return metadata;
27 }
28
29 public void setMetadata(TranscriptionResultMetadata[] value) {
30 metadata = value;
31 }
32
33 public Boolean getSuccess() {
34 return success;
35 }
36
37 public void setSuccess(Boolean value) {
38 success = value;
39 }
40
41 public static MyTranscriptionResponse FromTranscriptionResult(TranscriptionResult res, String fileName) {
42 MyTranscriptionResponse mtr = new MyTranscriptionResponse();
43
44 mtr.setFileName(fileName);
45 mtr.setMetadata(res.getMetadata());
46 mtr.setSuccess(res.getSuccess());
47 mtr.setTranscription(res.getTranscription());
48
49 return mtr;
50 }
51}
Note: See TracBrowser for help on using the repository browser.