|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.skype.tutorial.util.MySession
public class MySession
Tutorial Session Object. Encapsulates common aspects of the SkypeKit-based Java tutorials. These include:
MySkype instance (tutorials-specific Skype class extension)SignInMgr instanceAccount instance
| Field Summary | |
|---|---|
boolean |
callFinished
Whether our call has finished. |
static java.lang.String |
IP_ADDR
Server IP Address. |
com.skype.api.Account |
myAccount
Account instance for this tutorial session. |
java.lang.String |
myAccountName
Name of the target Skype account, which is actually the Skype Name of the user that created it. |
static java.io.PrintStream |
myConsole
Console PrintStream. |
JavaTutorialListeners |
myJavaTutorialListeners
Callbacks/event handlers for this tutorial session. |
ParseSkypeKitVersion |
myParseSkypeKitVersion
SkypeKit version number parse instance for this tutorial session. |
SignInMgr |
mySignInMgr
|
MySkype |
mySkype
Skype instance for this tutorial session. |
com.skype.ipc.TCPSocketTransport |
myTransport
|
java.lang.String |
myTutorialTag
Info/Debug console output message prefix/identifier tag. |
static int |
PORT_NUM
Server Port. |
static java.lang.String |
T_TAG_DFLT
Default value for the Info/Debug console output message prefix/identifier tag, in case we get passed a null or empty string. |
| Constructor Summary | |
|---|---|
MySession()
|
|
| Method Summary | |
|---|---|
boolean |
doCreateSession(java.lang.String tutorialTag,
java.lang.String accountName,
AppToken myAppToken)
Creates most everything needed for a tutorial session; the Account instance is populated during sign-in. |
void |
doTearDownSession()
Tears down a tutorial session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String T_TAG_DFLT
public java.lang.String myTutorialTag
public static java.io.PrintStream myConsole
System.out, but specifies autoFlush as true to ensure
that console output does not intermingle since both the tutorial code and the
event handlers write to the console.
public java.lang.String myAccountName
public SignInMgr mySignInMgr
public MySkype mySkype
MySkype,
Skypepublic ParseSkypeKitVersion myParseSkypeKitVersion
mySkype!
ParseSkypeKitVersionpublic com.skype.api.Account myAccount
Accountpublic boolean callFinished
Accountpublic JavaTutorialListeners myJavaTutorialListeners
public static final java.lang.String IP_ADDR
public static final int PORT_NUM
-p 9999
where -p 9999 reflects this value.
public com.skype.ipc.TCPSocketTransport myTransport
| Constructor Detail |
|---|
public MySession()
| Method Detail |
|---|
public boolean doCreateSession(java.lang.String tutorialTag,
java.lang.String accountName,
AppToken myAppToken)
tutorialTag - The tutorial's class name. If null or the empty string, default it to T_TAG_DFLT.accountName - The name of the account to use for this tutorial. If null or the empty string,
fail by throwing a RuntimeException indicating that fact.myAppToken - AppToken string for this tutorial.
SignInMgrpublic void doTearDownSession()
JavaTutorialListeners.unRegisterAllListeners(),
TCPSocketTransport.disconnect(),
Skype.Close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||