예제 #1
0
 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);
 }
예제 #2
0
 public static void WriteDataToStore()
 {
     AppStorageHelper.SaveFavoriteSessions(SavedSessionIds);
     AppStorageHelper.SaveUserId(uuid);
     AppStorageHelper.SaveFeedbackList(FeedbackList);
 }