package com.nulabinc.backlog4j.api.option;

import com.nulabinc.backlog4j.http.NameValuePair;

/**
 * Parameters for update status API.
 *
 * @author nulab-inc
 */
public class UpdateStatusParams extends PatchParams {

    private Object projectIdOrKey;
    private Object statusId;

    public UpdateStatusParams(Object projectIdOrKey, Object statusId, String name, String color) {
        this.projectIdOrKey = projectIdOrKey;
        this.statusId = statusId;
        parameters.add(new NameValuePair("name", name));
        parameters.add(new NameValuePair("color", color));
    }


    public String getProjectIdOrKeyString() {
        return projectIdOrKey.toString();
    }

    public String getStatusId() {
        return statusId.toString();
    }
}

@@ -37,16 +37,55 @@
 ption;%0A%0A
+import com.nulabinc.backlog4j.Project;%0A
 import c
@@ -399,22 +399,41 @@
 g name, 
-String
+Project.CustomStatusColor
  color) 
@@ -626,16 +626,30 @@
 %22, color
+.getStrValue()
 ));%0A    

Fix type at color variable