public SetFieldVisibilityPipeline WithParameters([NotNull] ContentModel contentModel, [NotNull] AppearanceOptions appearance, [NotNull] Field field) { Assert.ArgumentNotNull(contentModel, nameof(contentModel)); Assert.ArgumentNotNull(appearance, nameof(appearance)); Assert.ArgumentNotNull(field, nameof(field)); ContentModel = contentModel; Appearance = appearance; Field = field; IsVisible = true; Start(); return(this); }
public PaginatedMessage(IEnumerable <string> pages, string title = "", Color?embedColor = null, IUser user = null, AppearanceOptions options = null) => new PaginatedMessage(pages.Select(x => new Page { Description = x }), title, embedColor, user, options);