public FakeArticleList() { ArticleTeaser teaser1 = new ArticleTeaser(); teaser1.id = "abc"; teaser1.promotionContent = new PromotionContent(); teaser1.promotionContent.title = new ValueString("Some news happened"); teaser1.promotionContent.description = new ValueString("It was huge"); Add(teaser1); }
public void SetModel(ArticleTeaser model) { this.model = model; try { uri = Android.Net.Uri.Parse(model.promotionContent.imageAsset.urls[0].url); container.Tag = model.id; } catch (Exception ex) { Log.Debug(TAG, ex.Message); } title.SetText(model.promotionContent.title.value, TextView.BufferType.Normal); description.SetText(model.promotionContent.description.value, TextView.BufferType.Normal); }