Exemplo n.º 1
0
        public ServiceController(string baseURL)
        {
            BaseURL = baseURL;

            Summaries = new SummariesController();
            Summaries.baseController = this;
            Summaries.BaseURL = BaseURL;

            User = new UserController();
            User.BaseURL = BaseURL;

            Feeds = new FeedController();
            Feeds.baseController = this;
            Feeds.BaseURL = BaseURL;

            Feeds.GetFeedList();
        }
Exemplo n.º 2
0
 void OnAuthUpdate(UserController sender)
 {
     if (sender.IsAuthenticated)
     {
         UpdateData();
     }
 }
Exemplo n.º 3
0
        void User_AuthUpdate(UserController sender)
        {
            if (sender.IsAuthenticated)
            {
                // TODO: feed should be generic, not always KML
                KMLFeed feed = new KMLFeed();
                feed.Title = MainPageResource.YourLandmarks;
                feed.Icon = Service.User.currentUser.profile_image_url;
                feed.RefMapLayer = currentUserMapLayer;
                lbSocialFeeds.Items.Insert(0, feed); // we want it FIRST in the list

                socialStackPanel.Visibility = Visibility.Visible;
                btnAddLandmark.Visibility = Visibility.Visible;

                this.currentUserBadge.CurrentUser = sender.currentUser;
                InitUserLandmarkLayers();
            }
            else
            {
                btnAddLandmark.Visibility = Visibility.Collapsed;
                this.currentUserBadge.CurrentUser = null;
            }
        }