Home
MatriX vNext
MatriX XMPP SDK ▼
Forum
About us ▼
Contact
Not logged in.
·
Lost password
·
Register
Forum
Search
Members
Forum:
MatriX and XmppDotNet
GroupChat?
yagami
2012-03-13, 06:40
#1
Member since Mar 2012 ·
30
posts
Group memberships:
Members
Show profile
·
Link to this post
Subject:
GroupChat?
Does the SDK can use groupchat in windows phone?Has any example?
Thanks a lot!
Alex
2012-03-13, 07:38
#2
Member since Feb 2003 ·
4449
posts · Location: Germany
Group memberships:
Administrators, Members
Show profile
·
Link to this post
yes of course. Download the full version of the SDK, there is a group chat example in the MiniClient. The API is exactly the same for all MatriX versions.
Alex
yagami
2012-03-13, 08:18
#3
Member since Mar 2012 ·
30
posts
Group memberships:
Members
Show profile
·
Link to this post
How to change the room's permissions?
I create a room, but it said "This room is locked from entry until configuration is confirmed."...
Thanks a lot~
Alex
2012-03-13, 11:48
#4
Member since Feb 2003 ·
4449
posts · Location: Germany
Group memberships:
Administrators, Members
Show profile
·
Link to this post
either change it on your server so that no configuration is required
Request an instant room which accepts the default configuration
Request the room configuration form and submit your room configuration
Here is some example code from one of my custom muc clients:
private
BareJidComparer bjc
=
new
BareJidComparer
(
)
;
private
FullJidComparer fjc
=
new
FullJidComparer
(
)
;
// in the OnPresence event check if the rooms returns an error
// and room configuration is required.
private
void
OnPresence
(
object
Sender, PresenceEventArgs ea
)
{
var
pres
=
ea
.
Presence
;
if
(
pres
.
Type
==
PresenceType
.
error
)
{
HandlePresenceErrors
(
pres
)
;
}
else
{
if
(
pres
.
From
.
Equals
(
new
Jid
(
Jid
+
"/"
+
NickName
)
, fjc
)
)
{
//self presence
var
xUser
=
pres
.
MucUser
;
if
(
xUser
!=
null
)
{
if
(
xUser
.
HasStatus
(
110
)
)
{
tbbEmotes
.
IsEnabled
=
true
;
txtSend
.
IsEnabled
=
true
;
}
if
(
xUser
.
HasStatus
(
201
)
)
{
// 201, Inform user that a new room has been created
Global
.
MucManager
.
RequestInstantRoom
(
Jid, InstantRoomResult
)
;
}
}
}
mucRoster
.
SetPresence
(
pres
)
;
}
}
private
void
InstantRoomResult
(
object
sender, IqEventArgs args
)
{
if
(
args
.
Iq
.
Type
==
Matrix
.
Xmpp
.
IqType
.
result
)
{
}
}
yagami
2012-03-14, 03:00
#5
Member since Mar 2012 ·
30
posts
Group memberships:
Members
Show profile
·
Link to this post
Thanks!!!!!
It's very useful!
Close
Smaller –
Larger +
Reply to this post:
Verification code:
Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys:
Special characters:
Forum:
MatriX and XmppDotNet