Skip to content

Missing "tagInclusionRule" from com.brightcove.commons.catalog.objects.Playlist #5

@martinsmid914

Description

@martinsmid914

Getting JSONException if I try to update playlist because of missing tagInclusionRule from playlist object.

My solution

  1. add instance var to Playlist

private String tagInclusionRule;

  1. add condition to finishConstruction method

else if("tagInclusionRule".equals(rootKey))
{
tagInclusionRule = rootValue.toString();
}

  1. create getter and setter
   public String getTagInclusionRule()
{
    return tagInclusionRule;
}

public void setTagInclusionRule(String tagInclusionRule)
{
    this.tagInclusionRule = tagInclusionRule;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions