/// <summary> /// Initializes a new image picker item based on the specified <paramref name="image"/>, <paramref name="title"/>, /// <paramref name="description"/> and <paramref name="link"/>. /// </summary> /// <param name="image">An instance of <see cref="IPublishedContent"/> representing the selected image.</param> /// <param name="title">The title of the item.</param> /// <param name="description">The description of the item.</param> /// <param name="link">An instance of <see cref="LinkPickerItem"/> representing the link of the item.</param> public ImagePickerItem(ImagePickerImage image, string title, string description, LinkPickerItem link) { Image = image; Title = title; Description = description; Link = link ?? LinkPickerItem.Parse(new JObject()); }
/// <summary> /// Initializes a new image picker item based on the specified <code>image</code>, <code>title</code>, <code>description</code> and <code>link</code>. /// </summary> /// <param name="image">An instance of <see cref="IPublishedContent"/> representing the selected image.</param> /// <param name="title">The title of the item.</param> /// <param name="description">The description of the item.</param> /// <param name="link">An instance of <see cref="LinkPickerItem"/> representing the link of the item.</param> public ImagePickerItem(ImagePickerImage image, string title, string description, LinkPickerItem link) { Image = image; Title = title; Description = description; Link = link ?? LinkPickerItem.Parse(new JObject()); }