Skip to content

Commit ef0eff3

Browse files
author
Amit Seker
committed
TEJ-1855: Remove all genre references.
1 parent fdf4e24 commit ef0eff3

File tree

5 files changed

+0
-20
lines changed

5 files changed

+0
-20
lines changed

json/src/main/java/com/basistech/rosette/apimodel/jackson/AdmRequestMixin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ protected AdmRequestMixin(
3636
@JsonProperty("profileId") String profileId,
3737
@JsonProperty("text") AnnotatedText text,
3838
@JsonProperty("options") Options options,
39-
@JsonProperty("genre") String genre,
4039
@JsonProperty("language") LanguageCode language
4140
) {
4241
//

json/src/main/java/com/basistech/rosette/apimodel/jackson/DocumentRequestMixin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ protected DocumentRequestMixin(
4747
@JsonProperty("content") Object content,
4848
@JsonProperty("contentUri") String contentUri,
4949
@JsonProperty("contentType") String contentType,
50-
@JsonProperty("genre") String genre,
5150
@JsonProperty("options") Options options
5251
) {
5352
//

json/src/test/java/com/basistech/rosette/apimodel/ModelTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ void packageTest(boolean inputStreams) throws ClassNotFoundException, IOExceptio
134134
o1 = DocumentRequest.builder()
135135
.profileId(r.getProfileId())
136136
.language(r.getLanguage())
137-
.genre(r.getGenre())
138137
.content(r.getContent())
139138
.contentUri(r.getContentUri())
140139
.options(r.getOptions())

model/src/main/java/com/basistech/rosette/apimodel/AdmRequest.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ public final class AdmRequest<O extends Options> extends Request {
3838
*/
3939
private final O options;
4040

41-
/**
42-
* @return genre
43-
*/
44-
private final String genre;
45-
4641
/**
4742
* @return language
4843
*/
@@ -52,12 +47,10 @@ public final class AdmRequest<O extends Options> extends Request {
5247
public AdmRequest(String profileId,
5348
AnnotatedText text,
5449
O options,
55-
String genre,
5650
LanguageCode language) {
5751
super(profileId);
5852
this.text = text;
5953
this.options = options;
60-
this.genre = genre;
6154
this.language = language;
6255
}
6356
}

model/src/main/java/com/basistech/rosette/apimodel/DocumentRequest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@
4444
* In this object the 'content' item is an {@link Object}; it contains a {@link String}
4545
* for plain text, or an {@link java.io.InputStream} for binary data. {@link DocumentRequest.DocumentRequestBuilder}
4646
* provides several alternative methods for setting this information.
47-
*
48-
* This class includes a 'genre' field. If no genre is specified, then the system
49-
* applies generic processing. Valid values for genre are specified in the API documentation.
5047
*/
5148
@Value
5249
public final class DocumentRequest<O extends Options> extends Request {
@@ -71,11 +68,6 @@ public final class DocumentRequest<O extends Options> extends Request {
7168
*/
7269
private final String contentType;
7370

74-
/**
75-
* @return request genre
76-
*/
77-
private final String genre;
78-
7971
/**
8072
* @return request options
8173
*/
@@ -87,14 +79,12 @@ public DocumentRequest(String profileId,
8779
Object content,
8880
String contentUri,
8981
String contentType,
90-
String genre,
9182
O options) {
9283
super(profileId);
9384
this.language = language;
9485
this.content = content;
9586
this.contentUri = contentUri;
9687
this.contentType = contentType;
97-
this.genre = genre;
9888
this.options = options;
9989
}
10090

0 commit comments

Comments
 (0)