All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.crow_misia.sdp.attribute.OrientAttribute.kt Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package io.github.crow_misia.sdp.attribute

import io.github.crow_misia.sdp.SdpParseException

/**
 * RFC8866 6.8. orient (Orientation)
 * Name: orient
 * Value: orient-value
 * Usage Level: media
 * Charset Dependent: no
 * Syntax:
 * orient-value = portrait / landscape / seascape
 * portrait  = %s"portrait"
 * landscape = %s"landscape"
 * seascape  = %s"seascape"
 * ; NOTE: These names are case-sensitive.
 * Example:
 * a=orient:portrait
 */
data class OrientAttribute internal constructor(
    override var value: String,
) : BaseSdpAttribute(fieldName, value) {
    companion object {
        internal const val fieldName = "orient"

        @JvmStatic
        fun of(value: String): OrientAttribute {
            return OrientAttribute(value)
        }

        internal fun parse(value: String): OrientAttribute {
            return OrientAttribute(value)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy