package com.nulabinc.backlog4j.api.option;

import com.nulabinc.backlog4j.Activity;
import com.nulabinc.backlog4j.PullRequest;
import com.nulabinc.backlog4j.http.NameValuePair;

import java.util.List;

/**
 * Parameters for pull request query.
 *
 * @author nulab-inc
 */
public class PullRequestQueryParams extends QueryParams{

    public PullRequestQueryParams statusType(List<PullRequest.StatusType> statusType) {
        for (PullRequest.StatusType type : statusType) {
            parameters.add(new NameValuePair("statusId[]", String.valueOf(type.getIntValue())));
        }
        return this;
    }
    @Override
    public PullRequestQueryParams minId(long minId) {
        return (PullRequestQueryParams)super.minId(minId);
    }

    public PullRequestQueryParams maxId(long maxId) {
        return (PullRequestQueryParams)super.maxId(maxId);
    }

    public PullRequestQueryParams count(int count) {
        return (PullRequestQueryParams)super.count(count);
    }

    public PullRequestQueryParams order(Order order) {
        return (PullRequestQueryParams)super.order(order);
    }
}

@@ -41,48 +41,8 @@
 n;%0A%0A
-import com.nulabinc.backlog4j.Activity;%0A
 impo
@@ -280,16 +280,17 @@
 ryParams
+ 
 %7B%0A%0A    p
@@ -559,24 +559,25 @@
 this;%0A    %7D%0A
+%0A
     @Overrid
@@ -667,24 +667,25 @@
 QueryParams)
+ 
 super.minId(
@@ -691,32 +691,46 @@
 (minId);%0A    %7D%0A%0A
+    @Override%0A
     public PullR
@@ -802,24 +802,25 @@
 QueryParams)
+ 
 super.maxId(
@@ -826,32 +826,46 @@
 (maxId);%0A    %7D%0A%0A
+    @Override%0A
     public PullR
@@ -936,24 +936,25 @@
 QueryParams)
+ 
 super.count(
@@ -964,24 +964,38 @@
 nt);%0A    %7D%0A%0A
+    @Override%0A
     public P
@@ -1076,16 +1076,17 @@
 yParams)
+ 
 super.or
@@ -1102,11 +1102,172 @@
 );%0A    %7D
+%0A%0A    public PullRequestQueryParams offset(long offset) %7B%0A        parameters.add(new NameValuePair(%22offset%22, String.valueOf(offset)));%0A        return this;%0A    %7D
 %0A%7D%0A

Fix PullRequestQueryParams class