package com.blackducksoftware.integration.hub.notification;

import java.util.Date;
import java.util.List;
import java.util.Optional;

import com.blackducksoftware.integration.hub.api.generated.enumeration.NotificationStateRequestStateType;
import com.blackducksoftware.integration.hub.api.generated.enumeration.NotificationType;
import com.blackducksoftware.integration.hub.notification.content.NotificationContent;
import com.blackducksoftware.integration.hub.notification.content.detail.NotificationContentDetail;

public class NotificationDetailResult {
    private final NotificationContent notificationContent;
    private final String contentType;
    private final Date createdAt;
    private final NotificationType type;
    private final String notificationGroup;
    private final String contentDetailKey;
    private final Optional<NotificationStateRequestStateType> notificationState;

    private final List<NotificationContentDetail> simpleNotificationContentDetails;

    public NotificationDetailResult(final NotificationContent notificationContent, final String contentType, final Date createdAt, final NotificationType type, final String notificationGroup, final String contentDetailKey,
            final Optional<NotificationStateRequestStateType> notificationState, final List<NotificationContentDetail> simpleNotificationContentDetails) {
        this.notificationContent = notificationContent;
        this.contentType = contentType;
        this.createdAt = createdAt;
        this.type = type;
        this.notificationGroup = notificationGroup;
        this.contentDetailKey = contentDetailKey;
        this.notificationState = notificationState;
        this.simpleNotificationContentDetails = simpleNotificationContentDetails;
    }

    public NotificationContent getNotificationContent() {
        return notificationContent;
    }

    public String getContentType() {
        return contentType;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public NotificationType getType() {
        return type;
    }

    public String getNotificationGroup() {
        return notificationGroup;
    }

    public String getContentDetailKey() {
        return contentDetailKey;
    }

    public Optional<NotificationStateRequestStateType> getNotificationState() {
        return notificationState;
    }

    public List<NotificationContentDetail> getSimpleNotificationContentDetails() {
        return simpleNotificationContentDetails;
    }

}

@@ -1,8 +1,916 @@
+/**%0A * hub-common%0A *%0A * Copyright (C) 2018 Black Duck Software, Inc.%0A * http://www.blackducksoftware.com/%0A *%0A * Licensed to the Apache Software Foundation (ASF) under one%0A * or more contributor license agreements. See the NOTICE file%0A * distributed with this work for additional information%0A * regarding copyright ownership. The ASF licenses this file%0A * to you under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License. You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied. See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A */%0A
 package 
@@ -1842,39 +1842,33 @@
 nContentDetail%3E 
-simpleN
+n
 otificationConte
@@ -2221,23 +2221,17 @@
 Detail%3E 
-simpleN
+n
 otificat
@@ -2576,23 +2576,17 @@
    this.
-simpleN
+n
 otificat
@@ -2605,23 +2605,17 @@
 tails = 
-simpleN
+n
 otificat
@@ -3284,14 +3284,8 @@
  get
-Simple
 Noti
@@ -3330,15 +3330,9 @@
 urn 
-simpleN
+n
 otif

removing the simple prefix