/*
 *
 *  *
 *  * Licensed under the Apache License, Version 2.0 (the "License");
 *  * you may not use this file except in compliance with the License.
 *  * You may obtain a copy of the License at
 *  *
 *  * http://www.apache.org/licenses/LICENSE-2.0
 *  *
 *  * Unless required by applicable law or agreed to in writing, software
 *  * distributed under the License is distributed on an "AS IS" BASIS,
 *  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  * See the License for the specific language governing permissions and
 *  * limitations under the License.
 *
 */

package com.ccreanga.bitbucket.rest.client.model.pull.activity;

import com.ccreanga.bitbucket.rest.client.model.User;

import java.io.Serializable;
import java.util.Date;

public abstract class PullRequestActivity implements Serializable {

    protected Long id;
    protected Date createdDate;
    protected User user;
    protected PullRequestActivityActionType actionType;

    public Long getId() {
        return id;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public User getUser() {
        return user;
    }

    public PullRequestActivityActionType getActionType() {
        return actionType;
    }
}

@@ -1246,10 +1246,1022 @@
 ;%0A    %7D%0A
+%0A    public boolean isComment()%7B%0A        return  actionType.equals(PullRequestActivityActionType.COMMENTED);%0A    %7D%0A    public boolean isRescope()%7B%0A        return  actionType.equals(PullRequestActivityActionType.RESCOPED);%0A    %7D%0A    public boolean isMerge()%7B%0A        return  actionType.equals(PullRequestActivityActionType.MERGED);%0A    %7D%0A    public boolean isApprove()%7B%0A        return  actionType.equals(PullRequestActivityActionType.APPROVED);%0A    %7D%0A    public boolean isDecline()%7B%0A        return  actionType.equals(PullRequestActivityActionType.DECLINED);%0A    %7D%0A    public boolean isOpen()%7B%0A        return  actionType.equals(PullRequestActivityActionType.OPENED);%0A    %7D%0A    public boolean isReopen()%7B%0A        return  actionType.equals(PullRequestActivityActionType.REOPENED);%0A    %7D%0A    public boolean isUnapprove()%7B%0A        return  actionType.equals(PullRequestActivityActionType.UNAPPROVED);%0A    %7D%0A    public boolean isUpdate()%7B%0A        return  actionType.equals(PullRequestActivityActionType.UPDATED);%0A    %7D%0A%0A
 %7D%0A

add helpers methods in order to build nicer lamdba expressions