From 93a04c35548e21c93e14541037e4c43b3cf23dae Mon Sep 17 00:00:00 2001 From: Joshua Redmond Date: Tue, 23 May 2017 10:21:06 +0100 Subject: [PATCH] Added status text and emoji to Profile object (#44) Added status text and status emoji to Profile object as per https://api.slack.com/docs/presence-and-status --- .../jbot/core/slack/models/Profile.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/jbot/src/main/java/me/ramswaroop/jbot/core/slack/models/Profile.java b/jbot/src/main/java/me/ramswaroop/jbot/core/slack/models/Profile.java index 30ea4cd0..fb7d996f 100644 --- a/jbot/src/main/java/me/ramswaroop/jbot/core/slack/models/Profile.java +++ b/jbot/src/main/java/me/ramswaroop/jbot/core/slack/models/Profile.java @@ -23,6 +23,10 @@ public class Profile { private String image72; private String image192; private String image512; + @JsonProperty("status_text") + private String statusText; + @JsonProperty("status_emoji") + private String statusEmoji; public String getFirstName() { return firstName; @@ -119,4 +123,20 @@ public String getImage512() { public void setImage512(String image512) { this.image512 = image512; } + + public String getStatusText() { + return statusText; + } + + public void setStatusText(String statusText) { + this.statusText = statusText; + } + + public String getStatusEmoji() { + return statusEmoji; + } + + public void setStatusEmoji(String statusEmoji) { + this.statusEmoji = statusEmoji; + } }