diff options
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick/components/controllers')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/controllers/StatusController.java | 2 | ||||
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/controllers/helpers/XMPPStatus.java | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/controllers/StatusController.java b/juick-xmpp/src/main/java/com/juick/components/controllers/StatusController.java index 697ad04a..f20fc76a 100644 --- a/juick-xmpp/src/main/java/com/juick/components/controllers/StatusController.java +++ b/juick-xmpp/src/main/java/com/juick/components/controllers/StatusController.java @@ -39,7 +39,7 @@ public class StatusController { XMPPStatus status = new XMPPStatus(); if (xmpp != null) { status.setInbound(xmpp.getInConnections()); - status.setOutbound(xmpp.getOutConnections()); + status.setOutbound(xmpp.getOutConnections().keySet()); } return status; } diff --git a/juick-xmpp/src/main/java/com/juick/components/controllers/helpers/XMPPStatus.java b/juick-xmpp/src/main/java/com/juick/components/controllers/helpers/XMPPStatus.java index d3459049..9b5bb0d5 100644 --- a/juick-xmpp/src/main/java/com/juick/components/controllers/helpers/XMPPStatus.java +++ b/juick-xmpp/src/main/java/com/juick/components/controllers/helpers/XMPPStatus.java @@ -18,16 +18,17 @@ package com.juick.components.controllers.helpers; import com.juick.components.s2s.ConnectionIn; -import com.juick.components.s2s.ConnectionOut; +import com.juick.components.s2s.StreamServerDialback; import java.util.List; +import java.util.Set; /** * Created by vitalyster on 16.02.2017. */ public class XMPPStatus { private List<ConnectionIn> inbound; - private List<ConnectionOut> outbound; + private Set<StreamServerDialback> outbound; public List<ConnectionIn> getInbound() { return inbound; @@ -37,11 +38,11 @@ public class XMPPStatus { this.inbound = inbound; } - public List<ConnectionOut> getOutbound() { + public Set<StreamServerDialback> getOutbound() { return outbound; } - public void setOutbound(List<ConnectionOut> outbound) { + public void setOutbound(Set<StreamServerDialback> outbound) { this.outbound = outbound; } } |