/// <summary> /// The HelloWorld Command /// </summary> /// <returns></returns> public CommandDocumentation Documentation() { string description = "HelloWorld command. Returns the message duplicated based on repeat count."; List<CommandParameterDocumentation> parameters = new List<CommandParameterDocumentation>() { new CommandParameterDocumentation(typeof(String), "Message", "The message."), new CommandParameterDocumentation(typeof(int), "RepeatCount", "Number of time to repeat the message (must be >= 0)."), }; CommandReturnTypeDocumentation returns = new CommandReturnTypeDocumentation(typeof(String), "Returns the message repeated as per repeat count."); return new CommandDocumentation(description, returns, parameters); }
/// <summary> /// Initializes a new instance of the <see cref="CommandDocumentation" /> class. /// </summary> /// <param name="description">The description.</param> /// <param name="returnTypeDocumentation">The return type documentation.</param> /// <param name="parametersDocumentation">The parameters documentation.</param> public CommandDocumentation(string description, CommandReturnTypeDocumentation returnTypeDocumentation, List<CommandParameterDocumentation> parametersDocumentation) { Description = description; ReturnTypeDocumentation = returnTypeDocumentation; ParametersDocumentation = parametersDocumentation; }