Esempio n. 1
0
        /// <summary>
        /// Creates activity view builder used to open the Activities View.
        /// </summary>
        /// <returns>The ActivitiesViewBuilder instance</returns>
        /// <param name="group">Activities group</param>
        /// <param name="tag">Activities tag</param>
        public ActivitiesViewBuilder CreateActivitiesView(string group, string tag)
        {
            Check.Argument.IsStrNotNullOrEmpty(group, "group", "Group can't be null or empty");
            Check.Argument.IsStrNotNullOrEmpty(tag, "tag", "Tag can't be null or empty");

            return(ActivitiesViewBuilder.Construct(getSocialImpl, group, tag));
        }
Esempio n. 2
0
        /// <summary>
        /// Creates activity view builder used to open the Activities View.
        /// </summary>
        /// <returns>The ActivitiesViewBuilder instance</returns>
        /// <param name="group">Activities group</param>
        /// <param name="tags">Activities tags</param>
        public ActivitiesViewBuilder CreateActivitiesView(string group, params string[] tags)
        {
            Check.Argument.IsStrNotNullOrEmpty(group, "group", "Group can't be null or empty");
            Check.Argument.IsNotNull(tags, "tags", "Tags can't be null");

            return(ActivitiesViewBuilder.Construct(getSocialImpl, group, tags));
        }
        /// <summary>
        /// Must not be invoked directly. Invoke <c><see cref="GetSocial.CreateActivitiesView"/></c> instead.
        /// </summary>
        public static ActivitiesViewBuilder Construct(IGetSocialNativeBridge getSocialImpl, string group, params string[] tags)
        {
            Check.Argument.IsNotNull(group, "group", "Can't create activity view with null group");

            var filteredTags = Array.FindAll(tags, tag => !string.IsNullOrEmpty(tag));

            var activitiesViewBuilder = new ActivitiesViewBuilder(getSocialImpl);

            activitiesViewBuilder.group = group;
            activitiesViewBuilder.tags  = filteredTags;

            return(activitiesViewBuilder);
        }
Esempio n. 4
0
 /// <summary>
 /// Creates activity view builder used to open the Activities View.
 /// </summary>
 /// <returns>The ActivitiesViewBuilder instance</returns>
 public ActivitiesViewBuilder CreateActivitiesView()
 {
     return(ActivitiesViewBuilder.Construct(getSocialImpl));
 }