Beispiel #1
0
		public static Product Deserialize(JsonValue value)
		{
			Product product = new Product(value ["uid"],
										  value ["name"],
								(float) value["price"],
								   (bool) value["available"]);
			return product;

		}
Beispiel #2
0
		public void RemoveProduct (Product product)
		{
			products.Remove (product);
		}
Beispiel #3
0
		public void AddProduct (Product product)
		{
			products.Add (product);
		}