Skip to content

Action class In #62

@n8fr8

Description

@n8fr8

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions