public IceCream(BaseType baseType, ScoopsType scoopsType, ToppingType toppingType) { var iceCreamBase = new NSUrlQueryItem("Base", baseType.ToString()); var iceCreamScoops = new NSUrlQueryItem("Scoops", scoopsType.ToString()); var iceCreamTopping = new NSUrlQueryItem("Topping", toppingType.ToString()); CheckQueryItems(new[] { iceCreamBase, iceCreamScoops, iceCreamTopping }); }
private void Notify(NSUrl url) { NSUrlComponents components = new NSUrlComponents(url, false); NSUrlQueryItem token_part = ( from NSUrlQueryItem qi in components.QueryItems where qi.Name == "token" select qi ).FirstOrDefault(); if (token_part != null) { NSNotification notification = new NSNotification(null); NSNotificationCenter.DefaultCenter.PostNotification(notification); } }