-
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
1 parent
5676d7b
commit b818b6a
Showing
6 changed files
with
110 additions
and
1 deletion.
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
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,21 @@ | ||
package com.crowdin.client.ai.model; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class AiSetting { | ||
|
||
private Integer assistActionAiPromptId; | ||
private Integer editorSuggestionAiPromptId; | ||
|
||
@Data | ||
private static class ShortCut { | ||
private String name; | ||
private String prompt; | ||
private Boolean isEnabled; | ||
} | ||
|
||
private List<ShortCut> shortcuts; | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/crowdin/client/ai/model/AiSettingResponse.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,9 @@ | ||
package com.crowdin.client.ai.model; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class AiSettingResponse { | ||
|
||
private AiSetting data; | ||
} |
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
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,6 @@ | ||
[ | ||
{ | ||
"op": "replace", | ||
"path": "/assistActionAiPromptId" | ||
} | ||
] |
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,13 @@ | ||
{ | ||
"data": { | ||
"assistActionAiPromptId": 2, | ||
"editorSuggestionAiPromptId": 5, | ||
"shortcuts": [ | ||
{ | ||
"name": "My first shortcut", | ||
"prompt": "Make translation shorter", | ||
"enabled": true | ||
} | ||
] | ||
} | ||
} |