Esempio n. 1
0
        public static TinderSession FromTombstoneData(TombstoneData data)
        {
            Client.AuthToken = data.AuthToken;
            _currentSession  = new TinderSession(data.FBSession, data.Location);
            _currentSession._currentProfile  = data.CurrentProfile;
            _currentSession._currentUser     = data.CurrentUser;
            _currentSession._globalInfo      = data.CurrentGlobals;
            _currentSession._lastActivity    = data.LastActivity;
            _currentSession._matches         = new MatchesViewModel(data.Matches);
            _currentSession._recommendations = new Stack <UserResult>(data.Recommendations);
            _currentSession.StartUpdatesTimer();

            (Application.Current as TinderApp.Library.Controls.IApp).RootFrameInstance.LoggedIn();

            return(_currentSession);
        }
Esempio n. 2
0
        public static TinderSession FromTombstoneData(TombstoneData data)
        {
            Client.AuthToken = data.AuthToken;
            _currentSession = new TinderSession(data.FBSession, data.Location);
            _currentSession._currentProfile = data.CurrentProfile;
            _currentSession._currentUser = data.CurrentUser;
            _currentSession._globalInfo = data.CurrentGlobals;
            _currentSession._lastActivity = data.LastActivity;
            _currentSession._matches = new MatchesViewModel(data.Matches);
            _currentSession._recommendations = new Stack<UserResult>(data.Recommendations);
            _currentSession.StartUpdatesTimer();

            (Application.Current as TinderApp.Library.Controls.IApp).RootFrameInstance.LoggedIn();

            return _currentSession;
        }
Esempio n. 3
0
 public void Logout()
 {
     _updateTimer.Stop();
     _currentSession = null;
 }
Esempio n. 4
0
        public static TinderSession CreateNewSession(FacebookSessionInfo fbSession, GeographicalCordinates location)
        {
            _currentSession = new TinderSession(fbSession, location);

            return _currentSession;
        }
Esempio n. 5
0
 public void Logout()
 {
     _updateTimer.Stop();
     _currentSession = null;
 }
Esempio n. 6
0
        public static TinderSession CreateNewSession(FacebookSessionInfo fbSession, GeographicalCordinates location)
        {
            _currentSession = new TinderSession(fbSession, location);

            return(_currentSession);
        }
Esempio n. 7
0
        public static TinderSession CreateNewSession(LinkedInSessionInfo lkSession)
        {
            _currentSession = new TinderSession(lkSession);

            return(_currentSession);
        }
Esempio n. 8
0
        public static TinderSession CreateNewSession(FacebookSessionInfo fbSession, Position location)
        {
            _currentSession = new TinderSession(fbSession, location);

            return _currentSession;
        }
Esempio n. 9
0
        public static TinderSession CreateNewSession(FacebookSessionInfo fbSession, Position location)
        {
            _currentSession = new TinderSession(fbSession, location);

            return(_currentSession);
        }