public CatalogEntry(Content type, string[] commandParams)
 {
     this.Type = type;
     this.Title = commandParams[(int)ContentParameters.Title];
     this.Author = commandParams[(int)ContentParameters.Author];
     this.Size = Int64.Parse(commandParams[(int)ContentParameters.Size]);
     this.URL = commandParams[(int)ContentParameters.Url];
 }
 private static void InsertInCatalog(ICatalog catalog, ICommand command, StringBuilder sb, Content content, string userOutput)
 {
     catalog.Add(new CatalogEntry(content, command.Parameters));
     sb.AppendLine(userOutput);
 }