Files
UnrealEngineUWP/Engine/Source/Programs/Shared/EpicGames.Slack/Blocks/DividerBlock.cs
Ben Marsh ab9c9d2f6e Horde: Fix static analyzer warnings in EpicGames.Slack.
#preflight none

[CL 21486052 by Ben Marsh in ue5-main branch]
2022-08-22 12:57:39 -04:00

36 lines
881 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.Collections.Generic;
namespace EpicGames.Slack.Blocks
{
/// <summary>
/// A content divider, like an &lt;hr&gt;, to split up different blocks inside of a message. The divider block is nice and neat, requiring only a type.
/// </summary>
public class DividerBlock : Block
{
/// <summary>
/// Constructor
/// </summary>
public DividerBlock() : base("divider")
{
}
}
/// <summary>
/// Extension methods for <see cref="Block"/>
/// </summary>
public static class DividerBlockExtensions
{
/// <summary>
/// Add an <see cref="DividerBlock"/> to the list of blocks
/// </summary>
/// <param name="container">Block container</param>
public static void AddDivider(this ISlackBlockContainer container)
{
DividerBlock block = new DividerBlock();
container.Blocks.Add(block);
}
}
}