public void GetGodNamesAsString()
        {
            StringBuilder builder = new StringBuilder("<!DOCTYPE html>" +
                                                      "<html lang=\"en\">" +
                                                      "<head></head>" +
                                                      "<body>");

            List <God> gods = SmiteGamepediaApi.GetAllGods();

            foreach (var god in gods)
            {
                builder.Append($"{god.Name} <img src=\"{god.Picture}\" style=\"width: auto; \"/> <br />");
            }
            builder.Append("</body></html>");

            string fullHtml = builder.ToString();

            using (StreamWriter writer = new StreamWriter(HttpContext.Response.Body))
            {
                writer.WriteLine(fullHtml);
            }
        }
        public static void Main(string[] args)
        {
            List <God> gods = SmiteGamepediaApi.GetAllGods();

            foreach (var god in gods)
            {
                Console.Write($"" +
                              $"{god.Name.PadRight(15)}" +
                              $"{god.Pantheon.PadRight(15)}" +
                              $"{god.AttackType.ToString().PadRight(15)}" +
                              $"{god.PowerType.ToString().PadRight(15)}" +
                              $"{god.GodClass.ToString().PadRight(15)}" +
                              $"{god.Difficulty.PadRight(15)}" +
                              $"{god.FavorCost.PadRight(15)}" +
                              $"{god.GemsCost.PadRight(15)}" +
                              $"{god.ReleaseDate.PadRight(15)}");
                Console.WriteLine();
            }


            Console.WriteLine("Complete...");
            Console.ReadLine();
        }
Exemple #3
0
 public DSRemakeModel()
 {
     Gods = SmiteGamepediaApi.GetAllGods();
 }