getRequestMeta method
Create request meta key value from DMAP codes list.
Throws DmapEncodeException in case of unknown code in metaCodes
.
Implementation
String getRequestMeta(List<String> metaCodes) {
var meta = <String>[];
for (var code in metaCodes) {
if (dmapCodeTypes.containsKey(code)) {
meta.add(dmapCodeTypes[code]!.name);
} else {
throw DmapEncodeException(
"'$code' was not found in actual DMAP codes list.");
}
}
return meta.join(",");
}