Exemple #1
0
        /// <summary>
        ///   <para>The color scheme used by the widget.</para>
        /// </summary>
        /// <param name="widget">Widget to call method on.</param>
        /// <param name="colorScheme">Color scheme of widget.</param>
        /// <returns>Reference to the current widget.</returns>
        /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
        /// <seealso cref="IFacebookRecommendationsFeedWidget.ColorScheme(string)"/>
        public static IFacebookRecommendationsFeedWidget ColorScheme(this IFacebookRecommendationsFeedWidget widget, FacebookColorScheme colorScheme)
        {
            Assertion.NotNull(widget);

            return(widget.ColorScheme(colorScheme.ToString().ToLowerInvariant()));
        }
Exemple #2
0
        /// <summary>
        ///   <para>The width of the widget in pixels.</para>
        /// </summary>
        /// <param name="widget">Widget to call method on.</param>
        /// <param name="width">Width of widget.</param>
        /// <returns>Reference to the current widget.</returns>
        /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
        /// <seealso cref="IFacebookRecommendationsFeedWidget.Width(string)"/>
        public static IFacebookRecommendationsFeedWidget Width(this IFacebookRecommendationsFeedWidget widget, short width)
        {
            Assertion.NotNull(widget);

            return(widget.Width(width.ToString(CultureInfo.InvariantCulture)));
        }
Exemple #3
0
        /// <summary>
        ///   <para>The height of the widget in pixels.</para>
        /// </summary>
        /// <param name="widget">Widget to call method on.</param>
        /// <param name="height">Height of widget.</param>
        /// <returns>Reference to the current widget.</returns>
        /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
        /// <seealso cref="IFacebookRecommendationsFeedWidget.Height(string)"/>
        public static IFacebookRecommendationsFeedWidget Height(this IFacebookRecommendationsFeedWidget widget, short height)
        {
            Assertion.NotNull(widget);

            return(widget.Height(height.ToString(CultureInfo.InvariantCulture)));
        }
Exemple #4
0
        /// <summary>
        ///   <para>Collection of Open Graph action types to show in the feed.</para>
        /// </summary>
        /// <param name="widget">Widget to call method on.</param>
        /// <param name="actions">Collection of Facebook action types.</param>
        /// <returns>Reference to the current widget.</returns>
        /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
        /// <seealso cref="IFacebookRecommendationsFeedWidget.Actions(IEnumerable{string})"/>
        public static IFacebookRecommendationsFeedWidget Actions(this IFacebookRecommendationsFeedWidget widget, params string[] actions)
        {
            Assertion.NotNull(widget);

            return(widget.Actions(actions));
        }