-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
205 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/com/crowdin/client/sourcestrings/model/AddSourceStringStringsBasedRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.crowdin.client.sourcestrings.model; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class AddSourceStringStringsBasedRequest { | ||
|
||
private String text; | ||
private String identifier; | ||
private Long branchId; | ||
private String context; | ||
private Boolean isHidden; | ||
private Integer maxLength; | ||
private List<Long> labelIds; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/crowdin/client/sourcestrings/model/ImportOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.crowdin.client.sourcestrings.model; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class ImportOptions { | ||
|
||
private Boolean firstLineContainsHeader; | ||
private Boolean importTranslations; | ||
private Object scheme; | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/java/com/crowdin/client/sourcestrings/model/UploadStringsProgress.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.crowdin.client.sourcestrings.model; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
|
||
@Data | ||
public class UploadStringsProgress { | ||
|
||
private String identifier; | ||
private String status; | ||
private int progress; | ||
private Attributes attributes; | ||
private Date createdAt; | ||
private Date updatedAt; | ||
private Date startedAt; | ||
private Date finishedAt; | ||
private String eta; | ||
|
||
@Data | ||
public static class Attributes { | ||
private Long branchId; | ||
private Long storageId; | ||
private String fileType; | ||
private Integer parserVersion; | ||
private List<Long> labelIds; | ||
private ImportOptions importOptions; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...main/java/com/crowdin/client/sourcestrings/model/UploadStringsProgressResponseObject.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.crowdin.client.sourcestrings.model; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class UploadStringsProgressResponseObject { | ||
|
||
private UploadStringsProgress data; | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/crowdin/client/sourcestrings/model/UploadStringsRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.crowdin.client.sourcestrings.model; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class UploadStringsRequest { | ||
|
||
private Long branchId; | ||
private Long storageId; | ||
private String type; | ||
private Integer parserVersion; | ||
private List<Long> labelIds; | ||
private Boolean updateStrings; | ||
private Boolean cleanupMode; | ||
private ImportOptions importOptions; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/test/resources/api/strings/addStringStringsBasedRequest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"text": "Not all videos are shown to users. See more", | ||
"identifier": "6a1821e6499ebae94de4b880fd93b985", | ||
"branchId": 667, | ||
"context": "shown on main page", | ||
"isHidden": false, | ||
"maxLength": 35, | ||
"labelIds": [ | ||
1 | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"data": { | ||
"identifier": "50fb3506-4127-4ba8-8296-f97dc7e3e0c3", | ||
"status": "finished", | ||
"progress": 100, | ||
"attributes": { | ||
"branchId": 667, | ||
"storageId": 61, | ||
"fileType": "android", | ||
"parserVersion": 8, | ||
"labelIds": [ | ||
1 | ||
], | ||
"importOptions": { | ||
"firstLineContainsHeader": false, | ||
"importTranslations": true, | ||
"scheme": { | ||
"identifier": 0, | ||
"sourcePhrase": 1, | ||
"en": 2, | ||
"de": 3 | ||
} | ||
}, | ||
"updateStrings": false, | ||
"cleanupMode": false | ||
}, | ||
"createdAt": "2019-09-23T11:26:54+00:00", | ||
"updatedAt": "2019-09-23T11:26:54+00:00", | ||
"startedAt": "2019-09-23T11:26:54+00:00", | ||
"finishedAt": "2019-09-23T11:26:54+00:00" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"storageId": 61, | ||
"branchId": 667, | ||
"labelIds": [ | ||
1 | ||
] | ||
} |