All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.testdroid.api.model.notification.APINotification Maven / Gradle / Ivy

The newest version!
package com.testdroid.api.model.notification;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.testdroid.api.APIEntity;

/**
 * @author Damian Sniezek 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class APINotification extends APIEntity {

    private String destination;

    private Long userId;

    private String userEmail;

    private Long projectId;

    private String projectName;

    private APINotificationChannel channel;

    private APINotificationScope scope;

    public APINotification() {
    }

    @SuppressWarnings("squid:S107")
    public APINotification(
            Long id, String destination, Long userId, String userEmail, Long projectId, String projectName,
            APINotificationChannel channel, APINotificationScope scope) {
        super(id);
        this.destination = destination;
        this.userId = userId;
        this.userEmail = userEmail;
        this.projectId = projectId;
        this.projectName = projectName;
        this.channel = channel;
        this.scope = scope;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public APINotificationChannel getChannel() {
        return channel;
    }

    public void setChannel(APINotificationChannel channel) {
        this.channel = channel;
    }

    public APINotificationScope getScope() {
        return scope;
    }

    public void setScope(APINotificationScope scope) {
        this.scope = scope;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    protected  void clone(T from) {
        APINotification apiNotification = (APINotification) from;
        cloneBase(from);
        this.destination = apiNotification.destination;
        this.channel = apiNotification.channel;
        this.scope = apiNotification.scope;
        this.projectId = apiNotification.projectId;
        this.userId = apiNotification.userId;
        this.userEmail = apiNotification.userEmail;
        this.projectName = apiNotification.projectName;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy