[Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
adding friends  XML
Forum Index -> JBuddy.NET
Author Message
cl1motor



Joined: 2010/02/26 16:14:53
Messages: 4
Offline

we are going to be sending notification IMs about what is going on with our site at the users request. I know some chat clients requires that the user accept you as a friend in order to recieve messages from them. Is there anything i need to do on my side differently than just calling AddBuddy() to make this happen?
jbuddysupport



Joined: 2007/05/03 18:15:29
Messages: 160
Location: Glastonbury, CT
Offline

Have a look at the javadocs API for IClient:
http://www.zionsoftware.com/support/jbuddy/sdk/javadocs/com/zion/jbuddy/IClient.html

In particular, review addBuddy(...), addBuddyToList(...), and of course, sendConfigToServer().

You should plan to call sendConfigToServer() (the equivalent function for JBuddy.NET), after modifying the buddylist.
[WWW]
cl1motor



Joined: 2010/02/26 16:14:53
Messages: 4
Offline

so you are saying that calling AddBuddy() will send a request to the user i'm adding so that they will be able to accept and recieve messages?
jbuddysupport



Joined: 2007/05/03 18:15:29
Messages: 160
Location: Glastonbury, CT
Offline

yes, this should trigger the IM server to send the authorization request to the buddy who will then decide if he wishes to grant you access to his presence and ability to message him/her.

Additional reading on buddy authorization should be done at: http://www.zionsoftware.com/support/jbuddy/sdk/javadocs/com/zion/jbuddy/IMessage.html

Checkout the IMessage types beginning with "AUTH_"

Also, please look at the CmdLineClient demo source. This will give good examples of updating buddylists and handling or sending buddy authorization.
[WWW]
hable1thayer



Joined: 2011/07/13 03:59:34
Messages: 1
Location: 17 Halpin Ln, Ridgefield, CT 06877
Offline

jbuddysupport wrote:
yes, this should trigger the IM server to send the authorization request to the buddy who will then decide if he wishes to grant you access to his presence and ability to message him/her.

Additional reading on buddy authorization should be done at: http://www.zionsoftware.com/support/jbuddy/sdk/javadocs/com/zion/jbuddy/IMessage.html

Checkout the IMessage types beginning with "AUTH_"

Also, please look at the CmdLineClient demo source. This will give good examples of updating buddylists and handling or sending buddy authorization. 


Thanks for giving the information. And I will try it in my application.Thanks again

carp fishing
 
Forum Index -> JBuddy.NET
Go to:   
Powered by JForum 2.1.7 © JForum Team