Skip to content

Commit 6cd76e1

Browse files
committed
fixes #1
1 parent 751cf2b commit 6cd76e1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/main/java/in/ashwanthkumar/slack/webhook/SlackAttachment.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public class SlackAttachment {
2727
private String titleLink;
2828
@SerializedName("text")
2929
private String text;
30+
@SerializedName("image_url")
31+
private String imageUrl;
3032
@SerializedName("fields")
3133
private List<Field> fields = new ArrayList<Field>();
3234

@@ -101,6 +103,11 @@ public SlackAttachment title(String title, String link) {
101103
return title(title);
102104
}
103105

106+
public SlackAttachment imageUrl(String imageUrl) {
107+
this.imageUrl = imageUrl;
108+
return this;
109+
}
110+
104111
public SlackAttachment text(String text) {
105112
this.text = text;
106113
return this;

0 commit comments

Comments
 (0)