For some actions, the parameters needs to be more than just a key, value pair. Sometimes it is a nested object/structure.
"c2pa.opened",
// "parameters": {
// "ingredients": [
// {
// "url": "self#jumbf=c2pa.assertions/c2pa.ingredient.v3",
// "hash": "ktgj4fjMNlh3ptoLEBS5+1QCBEtaE54nBM+pJi3cXAk="
// }
// ]
// }
however, the argument for the Action class, is just a HashMap of String key, value pairs:
action = Action(
PredefinedAction.OPENED,
softwareAgent,
HashMap<String,String>()
)
There isn't a way to create Ingredients like those shown above.
Also, if you try to stuff JSON into the "value", something breaks along the way.
For some actions, the parameters needs to be more than just a key, value pair. Sometimes it is a nested object/structure.
"c2pa.opened",
// "parameters": {
// "ingredients": [
// {
// "url": "self#jumbf=c2pa.assertions/c2pa.ingredient.v3",
// "hash": "ktgj4fjMNlh3ptoLEBS5+1QCBEtaE54nBM+pJi3cXAk="
// }
// ]
// }
however, the argument for the Action class, is just a HashMap of String key, value pairs:
action = Action(
PredefinedAction.OPENED,
softwareAgent,
HashMap<String,String>()
)
There isn't a way to create Ingredients like those shown above.
Also, if you try to stuff JSON into the "value", something breaks along the way.