Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MIXInvite, MIXInvitation and MIXInvitationAck Element #85

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tarun018
Copy link
Contributor

No description provided.

tarun018 added 2 commits July 23, 2017 00:02
Add UpdateSubscription feature for subscribing to additional MIX nodes
Add Joining a channel with a preference form
Add requesting user preference form and updating the preferences

License:
This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.

Test-Information:
Tests added for joining and leaving a channel as in XEP-0369, which passes.
Tests also added for updating subscription, joining channel with preference form and requesting user preference form as in XEP-0369, which passes.
Tested on Ubuntu 16.04 LTS.

Change-Id: Ibc2737f6154eeee1a85e98cb5f80c8bdbad35dcd
Add elements with their parser and serializers.

License:
This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.

Test-Information:
Added tests for elements parsers and Serializers based on examples in XEP 0369, which passes.
Tested on Ubuntu 16.04 LTS.

Change-Id: Ib5bcdee5f02681cecc0c3fd30d19627be483a7c1

std::string expectedResult = "<invitation-ack xmlns=\"urn:xmpp:mix:0\">"
"<value>Joined</value>"
"<invitation xmlns=\"urn:xmpp:mix:0\">"
Copy link
Contributor Author

@tarun018 tarun018 Jul 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since MIXInvitation is required as a payload element (Example 57, 58), I couldn't find a way around this. The namespace with element is required as per example 57.

invite->setInvitation(invitation);

std::string expectedResult = "<invite xmlns=\"urn:xmpp:mix:0\">"
"<invitation xmlns=\"urn:xmpp:mix:0\">"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since MIXInvitation is required as a payload element (Example 57, 58), I couldn't find a way around this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant