You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
52 lines
1.1 KiB
C#
52 lines
1.1 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using HordeServer.Api;
|
|
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using System.Collections.Generic;
|
|
|
|
namespace HordeServer.Models
|
|
{
|
|
/// <summary>
|
|
/// An individual subscription
|
|
/// </summary>
|
|
public interface INotificationSubscription
|
|
{
|
|
/// <summary>
|
|
/// Name of the user
|
|
/// </summary>
|
|
public ObjectId UserId { get; }
|
|
|
|
/// <summary>
|
|
/// Whether to receive email notifications
|
|
/// </summary>
|
|
public bool Email { get; }
|
|
|
|
/// <summary>
|
|
/// Whether to receive Slack notifications
|
|
/// </summary>
|
|
public bool Slack { get; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Trigger for notifications to be sent
|
|
/// </summary>
|
|
public interface INotificationTrigger
|
|
{
|
|
/// <summary>
|
|
/// Unique id for this subscription list
|
|
/// </summary>
|
|
ObjectId Id { get; }
|
|
|
|
/// <summary>
|
|
/// Whether this trigger has been fired
|
|
/// </summary>
|
|
bool Fired { get; }
|
|
|
|
/// <summary>
|
|
/// List of subscriptions to this event
|
|
/// </summary>
|
|
public IReadOnlyList<INotificationSubscription> Subscriptions { get; }
|
|
}
|
|
}
|