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); }
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; }
public static void Save(TombstoneData data) { Coding4Fun.Toolkit.Storage.Serializer.Save <TombstoneData>("TombstoneState", data); }
public static void Save(TombstoneData data) { Coding4Fun.Toolkit.Storage.Serializer.Save<TombstoneData>("TombstoneState", data); }