Struct StreamFormat
A stream_format value: sse events or raw chunked audio.
public readonly struct StreamFormat : IEquatable<StreamFormat>
- Implements
- Inherited Members
Constructors
StreamFormat(string)
Creates a format from its wire string.
public StreamFormat(string value)
Parameters
valuestringThe wire string, e.g.
sse.
Fields
Audio
Chunked raw audio bytes.
public static readonly StreamFormat Audio
Field Value
Sse
Server-sent events.
public static readonly StreamFormat Sse
Field Value
Properties
Value
The wire string.
public string Value { get; }
Property Value
Methods
Equals(StreamFormat)
public bool Equals(StreamFormat other)
Parameters
otherStreamFormat
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator string(StreamFormat)
Implicit conversion to string.
public static implicit operator string(StreamFormat format)
Parameters
formatStreamFormatThe format.
Returns
- string
The wire string.
implicit operator StreamFormat(string)
Implicit conversion from string.
public static implicit operator StreamFormat(string value)
Parameters
valuestringThe wire string.
Returns
- StreamFormat
The format.