def __init__(self, credentials, contacts):
        """
        :param credentials:
        :param contacts: list of [jid ]
        :return:
        """
        stackBuilder = YowStackBuilder()

        self._stack = stackBuilder \
            .pushDefaultLayers() \
            .push(SyncLayer) \
            .build()

        self._stack.setProp(SyncLayer.PROP_CONTACTS, contacts)
        self._stack.setProp(YowAuthenticationProtocolLayer.PROP_PASSIVE, True)
        self._stack.setCredentials(credentials)
def __init__ ( self , credentials , contacts ) : stackBuilder = YowStackBuilder ( ) self . _stack = stackBuilder . pushDefaultLayers ( ) . push ( SyncLayer ) . build ( ) self . _stack . setProp ( SyncLayer . PROP_CONTACTS , contacts ) self . _stack . setProp ( YowAuthenticationProtocolLayer . PROP_PASSIVE , True ) self . _stack . setCredentials ( credentials )
:param credentials:
        :param contacts: list of [jid ]
        :return: