2015-01-20 21:44:52 +01:00
|
|
|
// Copyright (C) 2015, The Duplicati Team
|
2014-08-04 01:06:29 +02:00
|
|
|
|
2015-01-20 21:44:52 +01:00
|
|
|
// http://www.duplicati.com, info@duplicati.com
|
2014-08-04 01:06:29 +02:00
|
|
|
//
|
|
|
|
|
// This library is free software; you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU Lesser General Public License as
|
|
|
|
|
// published by the Free Software Foundation; either version 2.1 of the
|
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This library is distributed in the hope that it will be useful, but
|
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Duplicati.Server.Serialization.Interface
|
|
|
|
|
{
|
2018-03-12 14:07:11 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Describes a notification
|
|
|
|
|
/// </summary>
|
2014-08-04 01:06:29 +02:00
|
|
|
public interface INotification
|
|
|
|
|
{
|
2018-03-12 14:07:11 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// The notification unique ID
|
|
|
|
|
/// </summary>
|
2014-08-04 01:06:29 +02:00
|
|
|
long ID { get; set; }
|
2018-03-12 14:07:11 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// The notification type
|
|
|
|
|
/// </summary>
|
2014-08-04 01:06:29 +02:00
|
|
|
NotificationType Type { get; set; }
|
2018-03-12 14:07:11 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// The notification title
|
|
|
|
|
/// </summary>
|
2014-08-04 01:06:29 +02:00
|
|
|
string Title { get; set; }
|
2018-03-12 14:07:11 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// The notification message
|
|
|
|
|
/// </summary>
|
2014-08-04 01:06:29 +02:00
|
|
|
string Message { get; set; }
|
2018-03-12 14:07:11 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// The serialized exception data, if any
|
|
|
|
|
/// </summary>
|
2014-08-04 01:06:29 +02:00
|
|
|
string Exception { get; set; }
|
2018-03-12 14:07:11 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// The ID of the backup that the notification belongs to
|
|
|
|
|
/// </summary>
|
2014-08-04 01:06:29 +02:00
|
|
|
string BackupID { get; set; }
|
2018-03-12 14:07:11 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// The action for the notification
|
|
|
|
|
/// </summary>
|
2014-08-04 09:06:12 +02:00
|
|
|
string Action { get; set; }
|
2018-03-12 14:07:11 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// When the notification was emitted
|
|
|
|
|
/// </summary>
|
2014-08-04 01:06:29 +02:00
|
|
|
DateTime Timestamp { get; set; }
|
2018-03-12 14:07:11 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// The ID of the log entry that relates to this message, if any
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The log entry identifier.</value>
|
|
|
|
|
string LogEntryID { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The ID of the event that triggered this notification
|
|
|
|
|
/// </summary>
|
|
|
|
|
string MessageID { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The logtag of the error or event that triggered this notification
|
|
|
|
|
/// </summary>
|
|
|
|
|
string MessageLogTag { get; set; }
|
2014-08-04 01:06:29 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|