com.zion.jbuddy.msn
Interface IMsnActivityService


public interface IMsnActivityService

Allows the client to create outgoing Activity Sessions and receive invitations to Activity Sessions from other users.

Since:
6.0

Method Summary
 void addActivityServiceListener(IMsnActivityServiceListener listener)
          Registers a listener to receive events from this service.
 IMsnActivitySession createSession(String recipient, int appId, String appName)
          Creates an Activity Session with another user.
 IMsnClient getClient()
          Returns the client associated with this Activity Service.
 void removeActivityServiceListener(IMsnActivityServiceListener listener)
          Stops a listener from receiving events from this service.
 

Method Detail

getClient

IMsnClient getClient()
Returns the client associated with this Activity Service.


addActivityServiceListener

void addActivityServiceListener(IMsnActivityServiceListener listener)
Registers a listener to receive events from this service.


removeActivityServiceListener

void removeActivityServiceListener(IMsnActivityServiceListener listener)
Stops a listener from receiving events from this service.


createSession

IMsnActivitySession createSession(String recipient,
                                  int appId,
                                  String appName)
                                  throws IOException
Creates an Activity Session with another user. Before the session can be initiated, listeners should be added and an invitation must be sent to the recipient.

Parameters:
appId - the ID of the application being used in this Activity
appName - the name of the application being used in this Activity
Throws:
IOException
See Also:
IMsnActivitySession.addActivitySessionListener(com.zion.jbuddy.msn.IMsnActivitySessionListener), IMsnActivitySession.invite()


JBuddy is a trademark of Zion Software, LLC in the US and other countries.
Copyright 2000-2010 Zion Software, LLC All Rights Reserved.