/// <summary> /// Gets a string to report that a command failed. /// </summary> /// <param name="commandId">The command ID for which to get a failure string.</param> /// <returns>The failure string.</returns> public static string GetFailureString(this ProtocolCommandId commandId) { return(commandId.GetStringForCommandId(Suffix.Failed)); }
/// <summary> /// Gets a string to use as a progress bar title when running a command. /// </summary> /// <param name="commandId">The command ID for which to get a string.</param> /// <returns>The string to display.</returns> public static string GetProgressTitle(this ProtocolCommandId commandId) { return(commandId.GetStringForCommandId(Suffix.Title)); }