Skip to content

Commit bb684de

Browse files
committed
Adding some missing properties to RichTextBlock and Attachment
1 parent d44f89e commit bb684de

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

SlackNet/Blocks/RichTextBlock.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public class RichTextLink : RichTextSectionElement
6161
public string Url { get; set; }
6262
public string Text { get; set; }
6363
public RichTextStyle Style { get; set; } = new();
64+
public bool? Unsafe { get; set; }
6465
}
6566

6667
[SlackType("team")]

SlackNet/Interaction/AttachmentUpdateResponse.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class AttachmentUpdateResponse : IReadOnlyAttachment
3030
public IList<Field> Fields => Attachment.Fields;
3131
public string ImageUrl => Attachment.ImageUrl;
3232
public string ThumbUrl => Attachment.ThumbUrl;
33+
public int? ThumbWidth => Attachment.ThumbWidth;
34+
public int? ThumbHeight => Attachment.ThumbHeight;
3335
public string FromUrl => Attachment.FromUrl;
3436
public string Footer => Attachment.Footer;
3537
public string FooterIcon => Attachment.FooterIcon;

SlackNet/Objects/Attachment.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public interface IReadOnlyAttachment
2525
IList<Field> Fields { get; }
2626
string ImageUrl { get; }
2727
string ThumbUrl { get; }
28+
int? ThumbWidth { get; }
29+
int? ThumbHeight { get; }
2830
string FromUrl { get; }
2931
string Footer { get; }
3032
string FooterIcon { get; }
@@ -64,7 +66,10 @@ public class Attachment : IReadOnlyAttachment
6466
public IList<Field> Fields { get; set; } = new List<Field>();
6567
public string ImageUrl { get; set; }
6668
public string ThumbUrl { get; set; }
69+
public int? ThumbWidth { get; set; }
70+
public int? ThumbHeight { get; set; }
6771
public string FromUrl { get; set; }
72+
public string OriginalUrl { get; set; }
6873
public string Footer { get; set; }
6974
public string FooterIcon { get; set; }
7075
public string Ts { get; set; }
@@ -78,6 +83,8 @@ public class Attachment : IReadOnlyAttachment
7883
public string ChannelName { get; set; }
7984
public bool? IsShare { get; set; }
8085
public bool? IsMsgUnfurl { get; set; }
86+
public string ServiceName { get; set; }
87+
public string ServiceIcon { get; set; }
8188
}
8289

8390
public class MessageBlock
@@ -88,7 +95,7 @@ public class MessageBlock
8895
public MessageBlocks Message { get; set; }
8996
}
9097

91-
public class MessageBlocks
98+
public class MessageBlocks
9299
{
93100
public IList<Block> Blocks { get; set; }
94-
}
101+
}

0 commit comments

Comments
 (0)