Skip to content

Commit

Permalink
contructor with userAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuth committed Dec 15, 2024
1 parent c570c41 commit 9c350fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/kotlin/de/gmuth/ipp/core/IppRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class IppRequest : IppMessage {
val requestedAttributes: List<String>
get() = operationGroup.getValues("requested-attributes")

constructor() : super()
constructor(userAgent: String? = null) : super() {
httpUserAgent = userAgent
}

constructor(
operation: IppOperation,
Expand All @@ -61,6 +63,7 @@ class IppRequest : IppMessage {
httpUserAgent = userAgent
}


fun createSubscriptionAttributesGroup(
notifyEvents: Collection<String>? = null,
notifyLeaseDuration: Duration? = null,
Expand Down

0 comments on commit 9c350fa

Please sign in to comment.