package com.nulabinc.backlog4j.api.option;

import com.nulabinc.backlog4j.http.NameValuePair;

/**
 * Parameters for update wiki page API.
 *
 * @author nulab-inc
 */
public class UpdateWikiParams extends PatchParams {

    private Object wikiId;

    public UpdateWikiParams(Object wikiId) {
        this.wikiId = wikiId;
    }

    public String getWikiId() {
        return wikiId.toString();
    }

    public UpdateWikiParams name(String name) {
        parameters.add(new NameValuePair("name", name));
        return this;
    }

    public UpdateWikiParams content(String content) {
        parameters.add(new NameValuePair("content", content));
        return this;
    }

    public UpdateWikiParams mailNotify(String mailNotify) {
        parameters.add(new NameValuePair("mailNotify", mailNotify));
        return this;
    }
}

@@ -713,22 +713,23 @@
 lNotify(
-String
+boolean
  mailNot
@@ -790,16 +790,31 @@
 otify%22, 
+String.valueOf(
 mailNoti
@@ -817,16 +817,17 @@
 Notify))
+)
 ;%0A      

change the type of mailNotify from string to boolean