Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fill HistoryRequest fields #134

Merged
merged 1 commit into from
Mar 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/main/kotlin/org/jetbrains/kotlinx/jupyter/message_types.kt
Original file line number Diff line number Diff line change
@@ -465,7 +465,23 @@ class InputReply(
) : MessageContent()

@Serializable
class HistoryRequest : MessageContent()
class HistoryRequest(
val output: Boolean,
val raw: Boolean,
val hist_access_type: String,

// If hist_access_type is 'range'
val session: Int? = null,
val start: Int? = null,
val stop: Int? = null,

// hist_access_type is 'tail' or 'search'
val n: Int? = null,

// If hist_access_type is 'search'
val pattern: String? = null,
val unique: Boolean? = null
) : MessageContent()

@Serializable
class HistoryReply(