|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.skype.Application
public final class Application
Implements the AP2AP API.
https://developer.skype.com/Docs/ApiDoc/Application_to_application_commands,
Serialized Form| Method Summary | |
|---|---|
void |
addApplicationListener(ApplicationListener listener)
Add a listener for events to this AP2AP implementation. |
Stream[] |
connect(Friend... friends)
Setup an AP2AP connection with a Friend. |
Stream[] |
connect(String... ids)
Setup an AP2AP connection with members. |
Stream[] |
connectToAll()
Find connetable users. |
void |
finish()
Finishes this application with disconnecting all streams. |
Friend[] |
getAllConnectableFriends()
Find user to whom Skype can connect using AP2AP. |
Friend[] |
getAllConnectedFriends()
Find all user with whom we have a established AP2AP connection. |
Friend[] |
getAllConnectingFriends()
Find all users to whom SKype is connecting a AP2AP connection. |
Friend[] |
getAllReceivedFriends()
Find all users which we have received data from using an AP2AP connection. |
Friend[] |
getAllSendingFriends()
Find all user to whom we are sending data using a AP2AP connection. |
Stream[] |
getAllStreams()
Gets all connected streams. |
Stream[] |
getAllStreams(Friend... friends)
Gets all connected streams by Friend instances. |
Stream[] |
getAllStreams(String... ids)
Gets connected streams by Skype IDs. |
Object |
getData(String name)
Returns the user data to which this object maps to the specified by the name. |
String |
getName()
Return the application name. |
void |
removeApplicationListener(ApplicationListener listener)
Remove a listener for this AP2AP implementation. |
void |
setData(String name,
Object userData)
Associates the specified user data with the specified name in this object. |
String |
toString()
Enable nice printing of Object, by returning the app name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getName()
public void finish()
throws SkypeException
SkypeException - when connection is gone bad.
public Stream[] connectToAll()
throws SkypeException
SkypeException - when connection is gone bad.
public Stream[] connect(Friend... friends)
throws SkypeException
friends - The ppl to start a AP2AP with.
SkypeException - when connection is gone bad.
public Stream[] connect(String... ids)
throws SkypeException
ids - The member IDs to start a AP2AP with.
SkypeException - when connection is gone bad.
public Stream[] getAllStreams(Friend... friends)
throws SkypeException
friends - to search streams for.
SkypeException - when connection is gone bad.
public Stream[] getAllStreams(String... ids)
throws SkypeException
The - Skype Ids to search streams for.
SkypeException - when connection is gone bad.
public Stream[] getAllStreams()
throws SkypeException
SkypeException - when connection is gone bad.public void addApplicationListener(ApplicationListener listener)
listener - the listener which will be triggered.public void removeApplicationListener(ApplicationListener listener)
listener - The listener that has to be removed.
public Friend[] getAllConnectableFriends()
throws SkypeException
SkypeException - when connection is gone bad.
public Friend[] getAllConnectingFriends()
throws SkypeException
SkypeException - when connection is gone bad.
public Friend[] getAllConnectedFriends()
throws SkypeException
SkypeException - when connection is gone bad.
public Friend[] getAllSendingFriends()
throws SkypeException
SkypeException - when connection is gone bad.
public Friend[] getAllReceivedFriends()
throws SkypeException
SkypeException - when connection is gone bad.public final Object getData(String name)
name - name whose associated user data is to be returned.
Map.get(Object)
public final void setData(String name,
Object userData)
name - name with which the specified user data is to be associated.userData - user data to be associated with the specified name.Map.put(Object, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||