private static string?TryGetTagValue(ITagsContainer tagsContainer, string key) { if (tagsContainer.Tags != null && tagsContainer.Tags.TryGetValue(key, out var tagValue)) { return(tagValue); } return(null); }
public TagsCloudForm(ITagsContainer container, FormConfig config, IBitmapSaver bitmapSaver, TagsVisualizer visualizer) { this.config = config; this.bitmapSaver = bitmapSaver; this.container = container; this.visualizer = visualizer; stopWords = new HashSet <string>(); }
public static string?GetDuration(this ITagsContainer tagsContainer) => TryGetTagValue(tagsContainer, "duration");
public static string?GetRotate(this ITagsContainer tagsContainer) => TryGetTagValue(tagsContainer, "rotate");
public static string?GetLanguage(this ITagsContainer tagsContainer) => TryGetTagValue(tagsContainer, "language");
public static string?GetCreationTime(this ITagsContainer tagsContainer) => TryGetTagValue(tagsContainer, "creation_time ");