|
117 | 117 | import com.slack.api.methods.request.stars.StarsAddRequest; |
118 | 118 | import com.slack.api.methods.request.stars.StarsListRequest; |
119 | 119 | import com.slack.api.methods.request.stars.StarsRemoveRequest; |
| 120 | +import com.slack.api.methods.request.slacklists.SlackListsCreateRequest; |
120 | 121 | import com.slack.api.methods.request.team.*; |
121 | 122 | import com.slack.api.methods.request.team.external_teams.TeamExternalTeamsDisconnectRequest; |
122 | 123 | import com.slack.api.methods.request.team.external_teams.TeamExternalTeamsListRequest; |
@@ -2776,6 +2777,23 @@ public static FormBody.Builder toForm(StarsRemoveRequest req) { |
2776 | 2777 | return form; |
2777 | 2778 | } |
2778 | 2779 |
|
| 2780 | + public static FormBody.Builder toForm(SlackListsCreateRequest req) { |
| 2781 | + FormBody.Builder form = new FormBody.Builder(); |
| 2782 | + setIfNotNull("name", req.getName(), form); |
| 2783 | + if (req.getDescriptionBlocks() != null) { |
| 2784 | + String json = getJsonWithGsonAnonymInnerClassHandling(req.getDescriptionBlocks()); |
| 2785 | + form.add("description_blocks", json); |
| 2786 | + } |
| 2787 | + if (req.getSchema() != null) { |
| 2788 | + String json = getJsonWithGsonAnonymInnerClassHandling(req.getSchema()); |
| 2789 | + form.add("schema", json); |
| 2790 | + } |
| 2791 | + setIfNotNull("copy_from_list_id", req.getCopyFromListId(), form); |
| 2792 | + setIfNotNull("include_copied_list_records", req.getIncludeCopiedListRecords(), form); |
| 2793 | + setIfNotNull("todo_mode", req.getTodoMode(), form); |
| 2794 | + return form; |
| 2795 | + } |
| 2796 | + |
2779 | 2797 | public static FormBody.Builder toForm(TeamAccessLogsRequest req) { |
2780 | 2798 | FormBody.Builder form = new FormBody.Builder(); |
2781 | 2799 | setIfNotNull("before", req.getBefore(), form); |
|
0 commit comments