public static async Task <IEnumerable <SampleDataItem> > returnPreviousN(SampleDataItem sdi, SampleDataGroup group, int n) { if (group.UniqueId != "Favorites") { List <SampleDataItem> l = new List <SampleDataItem>(); int c = int.Parse(sdi.UniqueId); for (int x = 0; x < n; x++) { if (c == 405) //lol randall monroe - doesn't have a comic #404 { c--; } if (c > 1) { l.Add(await getComicByNum(--c, group)); } } return(l); } else { return(null); } }
public SampleDataItem(String uniqueId, String title, String subtitle, String imagePath, String description, String content, SampleDataGroup group, string osi) : base(uniqueId, title, subtitle, imagePath, description) { this._content = content; this._group = group; this._isFav = false; this._onserverimage = osi; }