Exemplo n.º 1
0
 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];
 }
Exemplo n.º 2
0
 private static void InsertInCatalog(ICatalog catalog, ICommand command, StringBuilder sb, Content content, string userOutput)
 {
     catalog.Add(new CatalogEntry(content, command.Parameters));
     sb.AppendLine(userOutput);
 }