|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.skype.tutorial.util.SignInMgr
public class SignInMgr
Collect common sign-in/sign-out fields and encapsulate common code as methods.
| Field Summary | |
|---|---|
static int |
DELAY_CNT
Request polling limit (iterations). |
static int |
DELAY_INTERVAL
Request polling interval (milliseconds). |
static int |
LOGOUT_DELAY
Delay interval prior to logout (milliseconds). |
static java.lang.String |
MY_CLASS_TAG
Info/Debug console output message prefix/identifier tag. |
| Constructor Summary | |
|---|---|
SignInMgr()
|
|
| Method Summary | |
|---|---|
static boolean |
isLoggedIn(com.skype.api.Account myAccount)
Dynamically determines if an Account is signed in. |
boolean |
Login(java.lang.String myTutorialTag,
MySession mySession,
java.lang.String myAccountPword)
Common SkypeKit tutorial login processing. |
void |
Logout(java.lang.String myTutorialTag,
MySession mySession)
Common SkypeKit tutorial logout processing. |
| 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 MY_CLASS_TAG
public static final int DELAY_INTERVAL
public static final int DELAY_CNT
DELAY_CNT * DELAY_INTERVAL
milliseconds before giving up and failing.
public static final int LOGOUT_DELAY
| Constructor Detail |
|---|
public SignInMgr()
| Method Detail |
|---|
public boolean Login(java.lang.String myTutorialTag,
MySession mySession,
java.lang.String myAccountPword)
myTutorialTag - Invoker's MY_CLASS_TAG.mySession - Partially initialized session instance providing access to this sessions's Skype object.
MySession.myAccount populated
public void Logout(java.lang.String myTutorialTag,
MySession mySession)
Tutorial_1). We don't want to see
Account.LOGOUTREASON.APP_ID_FAILURE unless our AppToken is truly bogus!
myTutorialTag - Invoker's MY_CLASS_TAG.mySession - Populated session object providing access to the invoker's
Skype and Account objects.LOGOUT_DELAYpublic static boolean isLoggedIn(com.skype.api.Account myAccount)
myAccount - The target Account.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||