// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/notifications/scheduler/public/client_overview.h"

#include <utility>

#include "base/memory/raw_ptr.h"

namespace notifications {

ClientOverview::ClientOverview() = default;

ClientOverview::ClientOverview(
    ImpressionDetail impression_detail,
    std::vector<raw_ptr<const NotificationEntry>> scheduled_notifications)
    : impression_detail(impression_detail),
      scheduled_notifications(std::move(scheduled_notifications)) {}

ClientOverview::ClientOverview(const ClientOverview& other) = default;

ClientOverview::ClientOverview(ClientOverview&& other) = default;

ClientOverview& ClientOverview::operator=(const ClientOverview& other) =
    default;

ClientOverview& ClientOverview::operator=(ClientOverview&& other) = default;

ClientOverview::~ClientOverview() = default;

bool ClientOverview::operator==(const ClientOverview& other) const {
  return scheduled_notifications == other.scheduled_notifications &&
         impression_detail == other.impression_detail;
}

}  // namespace notifications
