public override object getAccessToken() { java.lang.String fbToken = (java.lang.String)com.codename1.io.Preferences.get(PREF_TOKEN, (java.lang.String)null); AccessToken token1 = new AccessToken(); if (fbToken != null) { long expires = com.codename1.io.Preferences.get(PREF_EXPIRES, 0L) / 1000; java.lang.String diffstring = SilverlightImplementation.toJava(expires.ToString()); ((AccessToken)token1).@this(fbToken, diffstring); return token1; } return null; }
public override object getAccessToken() { var fbToken = Session.ActiveSession.CurrentAccessTokenData.AccessToken; AccessToken token1 = new AccessToken(); if (fbToken != null) { java.lang.String stirngToke = SilverlightImplementation.toJava(fbToken); long diff = Session.ActiveSession.CurrentAccessTokenData.Expires.Ticks - Session.ActiveSession.CurrentAccessTokenData.Issued.Ticks; diff = diff / 1000; java.lang.String diffstring = SilverlightImplementation.toJava(diff.ToString()); ((AccessToken)token1).@this(stirngToke, diffstring); return token1; } return null; }