From 5699373cd9f453647512b0ae70eaff061e401c37 Mon Sep 17 00:00:00 2001 From: vanitasvitae Date: Fri, 16 Jun 2017 22:54:32 +0200 Subject: [PATCH] Add method to set Reason --- .../java/org/jivesoftware/smackx/jingle/element/Jingle.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/element/Jingle.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/element/Jingle.java index 210874ce3..1738901d8 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/element/Jingle.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/element/Jingle.java @@ -198,6 +198,11 @@ public final class Jingle extends IQ { return this; } + public Builder setReason(JingleReason reason) { + this.reason = reason; + return this; + } + public Jingle build() { return new Jingle(sid, action, initiator, responder, reason, contents); }