JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::midi_ci::PropertyReplyHeader Struct Reference

A struct containing data members that correspond to common fields in a reply to a property exchange request. More...

#include <juce_CIPropertyDelegate.h>

Collaboration diagram for juce::midi_ci::PropertyReplyHeader:

Public Member Functions

var toVarCondensed () const
 Converts a PropertyReplyHeader to a JSON object suitable for use as a MIDI-CI message header after conversion to 7-bit ASCII.
 

Static Public Member Functions

static PropertyReplyHeader parseCondensed (const var &)
 Converts a JSON object to a PropertyReplyHeader.
 

Public Attributes

int cacheTime = 0
 
std::map< Identifier, varextended
 
String mediaType = "application/json"
 
String message
 
Encoding mutualEncoding = Encoding::ascii
 
int status = 200
 

Detailed Description

A struct containing data members that correspond to common fields in a reply to a property exchange request.

Check the Property Exchange specification to find the meaning of the different fields.

For extended attributes that don't correspond to any of the defined data members, use the 'extended' map.

@tags{Audio}

Member Function Documentation

◆ parseCondensed()

static PropertyReplyHeader juce::midi_ci::PropertyReplyHeader::parseCondensed ( const var )
static

Converts a JSON object to a PropertyReplyHeader.

Unspecified fields will use their default values.

Referenced by juce::midi_ci::PropertyExchangeResult::getHeaderAsReplyHeader().

◆ toVarCondensed()

var juce::midi_ci::PropertyReplyHeader::toVarCondensed ( ) const

Converts a PropertyReplyHeader to a JSON object suitable for use as a MIDI-CI message header after conversion to 7-bit ASCII.

Member Data Documentation

◆ cacheTime

int juce::midi_ci::PropertyReplyHeader::cacheTime = 0

◆ extended

std::map<Identifier, var> juce::midi_ci::PropertyReplyHeader::extended

◆ mediaType

String juce::midi_ci::PropertyReplyHeader::mediaType = "application/json"

◆ message

String juce::midi_ci::PropertyReplyHeader::message

◆ mutualEncoding

Encoding juce::midi_ci::PropertyReplyHeader::mutualEncoding = Encoding::ascii

◆ status

int juce::midi_ci::PropertyReplyHeader::status = 200

The documentation for this struct was generated from the following file: