Skip to content

Commit

Permalink
Merge pull request #253 from jasonproulxFIRST/JP-Blocks
Browse files Browse the repository at this point in the history
Added HeaderBlock type
  • Loading branch information
Inumedia authored Oct 9, 2020
2 parents d25247a + db77b88 commit 6e109fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions SlackAPI/Block.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ public class ContextBlock : IBlock
public string block_id { get; set; }
public IElement[] elements { get; set; }
}
public class HeaderBlock : IBlock
{
public string type { get; } = BlockTypes.Header;
public Text text { get; set; }
public string block_id { get; set; }
}
public class Text : IElement
{
public string type { get; set; } = TextTypes.PlainText;
Expand Down Expand Up @@ -189,6 +195,7 @@ public static class BlockTypes
public const string Actions = "actions";
public const string Context = "context";
public const string Image = "image";
public const string Header = "header";
}

public static class TextTypes
Expand Down

0 comments on commit 6e109fe

Please sign in to comment.