public EmbedBuilder BuildEmbed() { var eb = new EmbedBuilder { Title = "Sign up to " + exchange }; if (TimeSpan.Days == 0 && TimeSpan.Hours != 0 || TimeSpan.Days == 0 && TimeSpan.Minutes != 0) { eb.WithAuthor("Pump will be in " + TimeSpan.Hours + " hours and " + TimeSpan.Minutes + " minutes."); } else { eb.WithAuthor("Pump will be in " + TimeSpan.Days + " days, " + TimeSpan.Hours + " hours and " + TimeSpan.Minutes + " minutes."); } eb.Url = exchangeReferralLink; eb.ThumbnailUrl = "https://puu.sh/zbrt1/01c3a7da72.png"; eb.Description = "**" + London.ToString("HH:mm" + " ") + London.DayOfWeek.ToString().Substring(0, 3) + London.ToString(", MMM d tt") + "GMT (London)\n" + NewYork.ToString("HH:mm" + " ") + NewYork.DayOfWeek.ToString().Substring(0, 3) + NewYork.ToString(", MMM d tt") + "EST (New York)\n" + Sweden.ToString("HH:mm" + " ") + Sweden.DayOfWeek.ToString().Substring(0, 3) + Sweden.ToString(", MMM d tt") + "CET (Sweden)\n" + Seoul.ToString("HH:mm" + " ") + Seoul.DayOfWeek.ToString().Substring(0, 3) + Seoul.ToString(", MMM d tt") + "GMT+9 (Seoul)" + "**"; eb.WithFooter("Countdown can be found on my status, on the right side bar. \n Pump will be on " + exchange + ". Make sure to sign up and transfer funds. We will trade using BTC Pairing."); eb.WithColor(10957198); return(eb); }
public Sweden ValidateTown(TownViewModel town, TownsContext context) { Sweden sweTown = context.Sweden /* Use for Eager Loading commented because we r Lazy! * .Include(i => i.EmployeeTerritories) * .ThenInclude(i => i.Territory) **/ .Where(s => s.Town.StartsWith(town.Name.ToLower())) .FirstOrDefault(); return(sweTown); }
public IActionResult Index(TownViewModel town) { //ReadListFromFile(); Sweden ValTown = town.ValidateTown(town, context); //ShowTown towns = new ShowTown(context); if (ValTown == null) { return(View(new TownViewModel { Name = "Atlantis", Population = 0, ID = 666 })); } return(View(new TownViewModel { Name = ValTown.Town, Population = ValTown.Population, ID = ValTown.Id })); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Sweden obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Sweden obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; }