Files
UnrealEngineUWP/Engine/Source/Programs/Horde/Horde.Server/Notifications/NotificationMessages.cs
Ben Marsh 637187c618 Horde: Rename the Horde.Build project to Horde.Server.
#preflight none

[CL 24688228 by Ben Marsh in ue5-main branch]
2023-03-17 09:50:40 -04:00

55 lines
1.1 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
namespace Horde.Server.Notifications
{
/// <summary>
/// A request from a user to be notified when something happens.
/// </summary>
public class UpdateNotificationsRequest
{
/// <summary>
/// Request notifications by email
/// </summary>
public bool? Email { get; set; }
/// <summary>
/// Request notifications on Slack
/// </summary>
public bool? Slack { get; set; }
}
/// <summary>
/// A request from a user to be notified when something happens.
/// </summary>
public class GetNotificationResponse
{
/// <summary>
/// Request notifications by email
/// </summary>
public bool Email { get; set; }
/// <summary>
/// Request notifications on Slack
/// </summary>
public bool Slack { get; set; }
/// <summary>
/// Constructor
/// </summary>
/// <param name="subscription">The subscription interface</param>
internal GetNotificationResponse(INotificationSubscription? subscription)
{
if (subscription == null)
{
Email = false;
Slack = false;
}
else
{
Email = subscription.Email;
Slack = subscription.Slack;
}
}
}
}