Ejemplo n.º 1
0
        public string GetCow(string message, Modes mode = Modes.Default)
        {
            var builder = new StringBuilder();

            builder.Append(GenerateMessageBubble(message));
            builder.Append(GenerateCow(ModeSettings.FindMode(mode)));
            return(builder.ToString());
        }
Ejemplo n.º 2
0
        public string GetVersion()
        {
            var builder = new StringBuilder();

            builder.AppendLine(GenerateMessageBubble($"nCowsay version {_version}"));
            builder.Append(GenerateCow(ModeSettings.FindMode(Modes.Default)));
            return(builder.ToString());
        }