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; }
public void SetRecentActivityFeed(string userName) { RecentActivityScrollingCollection = new RecentActivityScrollingCollection { IsNews = false, StorePromo = false, Username = userName, PageCount = 0 }; }
public async void SetRecentActivityFeed(string userName) { RecentActivityScrollingCollection = new RecentActivityScrollingCollection { IsNews = true, StorePromo = true, UserAccountEntity = App.UserAccountEntity, Username = userName, PageCount = 0 }; }
public void SetRecentActivityFeed() { RecentActivityScrollingCollection = new RecentActivityScrollingCollection { IsNews = false, StorePromo = false, UserAccountEntity = App.UserAccountEntity, Username = App.UserAccountEntity.GetUserEntity().OnlineId, PageCount = 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 }); }
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; }
public FriendPageViewModel() { FriendScrollingCollection = new FriendScrollingCollection(); RecentActivityScrollingCollection = new RecentActivityScrollingCollection(); }
public void SetRecentActivityFeed(string userName) { RecentActivityScrollingCollection = new RecentActivityScrollingCollection { IsNews = false, StorePromo = false, Username = userName, PageCount = 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 }); }
public FriendPageViewModel() { FriendScrollingCollection = new FriendScrollingCollection(); RecentActivityScrollingCollection = new RecentActivityScrollingCollection(); }