com.hp.jipp.model.DestinationStatuses.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jipp-core Show documentation
Show all versions of jipp-core Show documentation
IPP packet builder/parser
// Copyright 2018 HP Development Company, L.P.
// SPDX-License-Identifier: MIT
//
// DO NOT MODIFY. Code is auto-generated by genTypes.py. Content taken from registry at
// https://www.iana.org/assignments/ipp-registrations/ipp-registrations.xml, updated on 2021-05-04
@file:Suppress("MaxLineLength", "WildcardImport")
package com.hp.jipp.model
import com.hp.jipp.encoding.* // ktlint-disable no-wildcard-imports
/**
* Data object corresponding to a "destination-statuses" collection as defined in:
* [PWG5100.15](https://ftp.pwg.org/pub/pwg/candidates/cs-ippfaxout10-20131115-5100.15.pdf).
*/
@Suppress("RedundantCompanionReference", "unused")
data class DestinationStatuses
constructor(
var destinationUri: java.net.URI? = null,
var imagesCompleted: Int? = null,
var transmissionStatus: TransmissionStatus? = null,
) : AttributeCollection {
/** Construct an empty [DestinationStatuses]. */
constructor() : this(null)
/** Produce an attribute list from members. */
override val attributes: List>
get() = listOfNotNull(
destinationUri?.let { DestinationStatuses.destinationUri.of(it) },
imagesCompleted?.let { DestinationStatuses.imagesCompleted.of(it) },
transmissionStatus?.let { DestinationStatuses.transmissionStatus.of(it) },
)
/** Defines types for each member of [DestinationStatuses]. */
companion object : AttributeCollection.Converter {
override fun convert(attributes: List>): DestinationStatuses =
DestinationStatuses(
extractOne(attributes, destinationUri),
extractOne(attributes, imagesCompleted),
extractOne(attributes, transmissionStatus),
)
override val cls = DestinationStatuses::class.java
@Deprecated("Remove this symbol")
@JvmField val Types = this
@JvmField val destinationUri = UriType("destination-uri")
@JvmField val imagesCompleted = IntType("images-completed")
/**
* "transmission-status" member type.
*/
@JvmField val transmissionStatus = TransmissionStatus.Type("transmission-status")
}
override fun toString() = "DestinationStatuses(${attributes.joinToString()})"
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy