StreamLink

open class StreamLink: DataValue

Represents a link to the value of a media entity resource or a stream-typed property.

  • Which structure type does this stream link belong to?

    Declaration

    Swift

    final public var owningType: StructureType!
  • Which entity set does this stream link belong to?

    Declaration

    Swift

    final public var entitySet: EntitySet?
  • Which stream property does this stream link belong to?

    Declaration

    Swift

    final public var streamProperty: StreamProperty!
  • Media type if known, otherwise nil.

    Declaration

    Swift

    final public var mediaType: String?
  • Server-generated entity tag for this entity. If non-null, it is used for conflict detection during DataService.uploadMedia and DataService.uploadStream calls.

    Declaration

    Swift

    final public var entityTag: String?
  • The edit link for this value, preferably relative to the service root URL. If a stream does not have an explicit edit link, then writers should use the valuePath, or if that is not set, then a canonical URL (refer to the OData specification).

    Declaration

    Swift

    final public var editLink: String?
  • The read link for this value, preferably relative to the service root URL. If a stream does not have an explicit read link, then readers should use the valuePath, or if that is not set, then a canonical URL (refer to the OData specification).

    Declaration

    Swift

    final public var readLink: String?
  • If the stream content is available offline, then true, otherwise false.

    Declaration

    Swift

    final public var isOffline: Bool = false
  • Default initializer.

    Declaration

    Swift

    override public init()
  • Declaration

    Swift

    open func copyLink() -> StreamLink

    Return Value

    A copy of this stream link.

  • The type BasicType.STREAM_LINK.

    Declaration

    Swift

    override open var dataType: DataType
  • Declaration

    Swift

    open class func equal(a: StreamLink?, b: StreamLink?) -> Bool

    Parameters

    a

    First stream link.

    b

    Second stream link.

    Return Value

    true if two stream links have equal read/edit links.

  • Inline binary content if known, otherwise nil.

    Declaration

    Swift

    open var inlineData: Data?
  • Inline string content if known, otherwise nil.

    Declaration

    Swift

    open var inlineText: String?
  • Convert this data value to a string. If the dataType is defined by XML Schema Part 2: Datatypes, then the corresponding lexical format is used. JSON format is used for structured values (arrays and objects).

    Declaration

    Swift

    override open func toString() -> String

    Return Value

    Lexical representation of this data value.

  • Data type code of the wrapped value, equivalent to dataType.code.

    Declaration

    Swift

    override open var typeCode: Int
  • The canonical path of this value relative to the parent entity URL.

    Declaration

    Swift

    open var valuePath: String?