Ejemplo n.º 1
0
		internal static NewsService FromJObject(JObject jObject)
		{
			NewsService response = new NewsService();
			response.tienda_id = jObject ["branch_id"].ToString ();
			response.descripcion = jObject["description"].ToString();
			response.id = jObject["id"].ToString();
			response.titulo = jObject ["title"].ToString ();
			response.imagen = jObject ["image_url"].ToString ();

			return response;
		}
Ejemplo n.º 2
0
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			newsService = new NewsService ();
			newsService.setStoreId (store_id);
			List<NewsService> tableItems = newsService.All ();
			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) {
				this.tblNews.Source = new NewsTableSourceIphone (tableItems, this);
			} else {
				this.tblNews.Source = new NewsTableSource (tableItems, this);
			}
			View.Add (this.tblNews);
		}
Ejemplo n.º 3
0
 public void setNew(NewsService noti)
 {
     this.noticia = noti;
 }
Ejemplo n.º 4
0
		public void setNew(NewsService noti){
			this.noticia = noti;
		}