@@ -57,19 +57,18 @@ public ResponseObject<UploadStringsProgress> uploadStrings(Long projectId, Uploa
57
57
*/
58
58
@ Deprecated
59
59
public ResponseList <SourceString > listSourceStrings (Long projectId , Long fileId , Integer denormalizePlaceholders , Long branchId , String labelIds , String croql , String filter , String scope , Integer limit , Integer offset ) throws HttpException , HttpBadRequestException {
60
- Map <String , Optional <Object >> queryParams = HttpRequestConfig .buildUrlParams (
61
- "fileId" , Optional .ofNullable (fileId ),
62
- "denormalizePlaceholders" , Optional .ofNullable (denormalizePlaceholders ),
63
- "branchId" , Optional .ofNullable (branchId ),
64
- "labelIds" , Optional .ofNullable (labelIds ),
65
- "croql" , Optional .ofNullable (croql ),
66
- "filter" , Optional .ofNullable (filter ),
67
- "scope" , Optional .ofNullable (scope ),
68
- "limit" , Optional .ofNullable (limit ),
69
- "offset" , Optional .ofNullable (offset )
70
- );
71
- SourceStringResponseList sourceStringResponseList = this .httpClient .get (this .url + "/projects/" + projectId + "/strings" , new HttpRequestConfig (queryParams ), SourceStringResponseList .class );
72
- return SourceStringResponseList .to (sourceStringResponseList );
60
+ ListSourceStringsParams params = ListSourceStringsParams .builder ()
61
+ .fileId (fileId )
62
+ .denormalizePlaceholders (denormalizePlaceholders )
63
+ .branchId (branchId )
64
+ .labelIds (labelIds )
65
+ .croql (croql )
66
+ .filter (filter )
67
+ .scope (scope )
68
+ .limit (limit )
69
+ .offset (offset )
70
+ .build ();
71
+ return listSourceStrings (projectId , params );
73
72
}
74
73
75
74
public ResponseList <SourceString > listSourceStrings (Long projectId , ListSourceStringsParams params ) throws HttpException , HttpBadRequestException {
@@ -80,6 +79,7 @@ public ResponseList<SourceString> listSourceStrings(Long projectId, ListSourceSt
80
79
"fileId" , Optional .ofNullable (params .getFileId ()),
81
80
"branchId" , Optional .ofNullable (params .getBranchId ()),
82
81
"directoryId" , Optional .ofNullable (params .getDirectoryId ()),
82
+ "taskId" , Optional .ofNullable (params .getTaskId ()),
83
83
"croql" , Optional .ofNullable (params .getCroql ()),
84
84
"filter" , Optional .ofNullable (params .getFilter ()),
85
85
"scope" , Optional .ofNullable (params .getScope ()),
0 commit comments