Skip to content

Commit

Permalink
Simplified some code
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewcpu committed Nov 24, 2023
1 parent 7593f3a commit a8630ce
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ public Class<T> getResponseClass() {
}

public abstract Object getPayload();


}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import net.andrewcpu.elevenlabs.requests.DeleteRequest;

public class DeleteChapterByIdRequest extends DeleteRequest<String> {

public DeleteChapterByIdRequest(String projectId, String chapterId) {
super("v1/projects/" + projectId + "/chapters/" + chapterId, String.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ public class GetChapterSnapshotsRequest extends GetRequest<ChapterSnapshotsModel
public GetChapterSnapshotsRequest(String projectId, String chapterId) {
super("v1/projects/" + projectId + "/chapters/" + chapterId + "/snapshots", ChapterSnapshotsModelResponse.class);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ public class PostConvertChapterRequest extends PostRequest<String> {
public PostConvertChapterRequest(String projectId, String chapterId) {
super("v1/projects/" + projectId + "/chapters/" + chapterId + "/convert", String.class);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ public class PostConvertProjectRequest extends PostRequest<String> {
public PostConvertProjectRequest(String projectId) {
super("v1/projects/" + projectId + "/convert", String.class);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ public class PostStreamChapterSnapshotAudioRequest extends PostRequest<InputStre
public PostStreamChapterSnapshotAudioRequest(String projectId, String chapterId, String chapterSnapshotId) {
super("v1/projects/" + projectId + "/chapters/" + chapterId + "/snapshots/" + chapterSnapshotId + "/stream", InputStream.class);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ public class PostStreamProjectSnapshotAudioRequest extends PostRequest<InputStre
public PostStreamProjectSnapshotAudioRequest(String projectId, String snapshotId) {
super("v1/projects/" + projectId + "/snapshots/" + snapshotId + "/stream", InputStream.class);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ public Map<String, String> getQueryParameters() {
payload.put("with_settings", String.valueOf(withSettings));
return payload;
}

}

0 comments on commit a8630ce

Please sign in to comment.