void OnTapped(object s) { if (IsFavorite) { IsFavorite = false; App.SavedSessionIds.Remove(Session.Id); Insights.Track("Unfavorite Session", new Dictionary <string, string> { { "UserID", App.uuid }, { "SessionId", Session.Id } }); } else { App.SavedSessionIds.Add(Session.Id); IsFavorite = true; Insights.Track("Favorite Session", new Dictionary <string, string> { { "UserID", App.uuid }, { "SessionId", Session.Id } }); } AppStorageHelper.SaveFavoriteSessions(App.SavedSessionIds); }
public static void WriteDataToStore() { AppStorageHelper.SaveFavoriteSessions(SavedSessionIds); AppStorageHelper.SaveUserId(uuid); AppStorageHelper.SaveFeedbackList(FeedbackList); }