コード例 #1
0
        public async Task LoadPage()
        {
            var testFeed = new RecentActivityScrollingCollection
            {
                _page == 0
                    ? new Feed()
                {
                    IsPreviousButton = true, IsReloadButton = true
                }
                    : new Feed()
                {
                    IsPreviousButton = true
                }
            };
            var result = await LoadFeed(testFeed);

            if (result)
            {
                result = await LoadFeed(testFeed);
            }
            if (result)
            {
                testFeed.Add(new Feed()
                {
                    IsNextButton = true
                });
            }
            RecentActivityScrollingCollection = testFeed;
        }
コード例 #2
0
 public void SetRecentActivityFeed(string userName)
 {
     RecentActivityScrollingCollection = new RecentActivityScrollingCollection
     {
         IsNews     = false,
         StorePromo = false,
         Username   = userName,
         PageCount  = 0
     };
 }
コード例 #3
0
 public async void SetRecentActivityFeed(string userName)
 {
     RecentActivityScrollingCollection = new RecentActivityScrollingCollection
     {
         IsNews            = true,
         StorePromo        = true,
         UserAccountEntity = App.UserAccountEntity,
         Username          = userName,
         PageCount         = 0
     };
 }
コード例 #4
0
 public void SetRecentActivityFeed()
 {
     RecentActivityScrollingCollection = new RecentActivityScrollingCollection
     {
         IsNews            = false,
         StorePromo        = false,
         UserAccountEntity = App.UserAccountEntity,
         Username          = App.UserAccountEntity.GetUserEntity().OnlineId,
         PageCount         = 0
     };
 }
コード例 #5
0
        private async void SetupSampleData()
        {
            RecentActivityScrollingCollection = new RecentActivityScrollingCollection();
            var items = await SampleData.GetSampleRecentActivityFeed();

            foreach (var item in items)
            {
                RecentActivityScrollingCollection.Add(item);
            }
            RecentActivityScrollingCollection.Add(new Feed()
            {
                IsNextButton = true
            });
        }
コード例 #6
0
 public async Task LoadPage()
 {
     var testFeed = new RecentActivityScrollingCollection
     {
         _page == 0
             ? new Feed() {IsPreviousButton = true, IsReloadButton = true}
             : new Feed() {IsPreviousButton = true}
     };
     var result = await LoadFeed(testFeed);
     if (result)
     {
         result = await LoadFeed(testFeed);
     }
     if (result)
     {
         testFeed.Add(new Feed() { IsNextButton = true });
     }
     RecentActivityScrollingCollection = testFeed;
 }
コード例 #7
0
 public FriendPageViewModel()
 {
     FriendScrollingCollection = new FriendScrollingCollection();
     RecentActivityScrollingCollection = new RecentActivityScrollingCollection();
 }
コード例 #8
0
 public void SetRecentActivityFeed(string userName)
 {
     RecentActivityScrollingCollection = new RecentActivityScrollingCollection
     {
         IsNews = false,
         StorePromo = false,
         Username = userName,
         PageCount = 0
     };
 }
コード例 #9
0
 private async void SetupSampleData()
 {
     RecentActivityScrollingCollection = new RecentActivityScrollingCollection();
     var items = await SampleData.GetSampleRecentActivityFeed();
     foreach (var item in items)
     {
         RecentActivityScrollingCollection.Add(item);
     }
     RecentActivityScrollingCollection.Add(new Feed() { IsNextButton = true });
 }
コード例 #10
0
 public FriendPageViewModel()
 {
     FriendScrollingCollection         = new FriendScrollingCollection();
     RecentActivityScrollingCollection = new RecentActivityScrollingCollection();
 }