You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
55 lines
1.1 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|