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