Skip to content

Commit

Permalink
notifyEvents Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuth committed Oct 11, 2023
1 parent 8264a3b commit 3ca35ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/de/gmuth/ipp/client/IppPrinter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ open class IppPrinter(

fun createPrinterSubscription(
// https://datatracker.ietf.org/doc/html/rfc3995#section-5.3.3.4.2
notifyEvents: List<String>? = listOf("all"),
notifyEvents: Collection<String>? = listOf("all"),
notifyLeaseDuration: Duration? = null,
notifyTimeInterval: Duration? = null
): IppSubscription {
Expand All @@ -407,7 +407,7 @@ open class IppPrinter(
return IppSubscription(this, subscriptionAttributes)
}

fun checkNotifyEvents(notifyEvents: List<String>?) = notifyEvents?.let {
fun checkNotifyEvents(notifyEvents: Collection<String>?) = notifyEvents?.let {
if (it.isNotEmpty() && it.first() != "all")
checkIfValueIsSupported("notify-events-supported", it)
}
Expand Down Expand Up @@ -622,6 +622,7 @@ open class IppPrinter(
}
}

ippConfig.userName = "ipp-inspector"
runInspectionWorkflow(pdfResource, cancelJob)
}

Expand Down

0 comments on commit 3ca35ff

Please sign in to comment.