private void Start() { _hostManager = GetComponent <Hm>(); _gameManager = GetComponent <Gm>(); _sessionManager = GetComponent <Sm>(); StartCoroutine(SendRecords()); }
private void DisplaySQL() { StringBuilder sb = new StringBuilder(); sb.Append("<div style='width=100%'><b>SQL query:</b> " + commadConfig.GetSQL() + "</div>"); Hm.Write(sb.ToString()); }
public async Task <ActionResult <ItemDetail> > PostItemDetail(ItemDetail itemDetail) { if (itemDetail.ItemUrl.Contains("Zara")) { Zara z = new Zara(); z.Zaras(itemDetail.ItemUrl, itemDetail.ItemWantedPrice, itemDetail.ItemStore, itemDetail.ItemCurrentPrice, itemDetail.ItemName); _context.ItemDetails.Add(z.RetunA()); } else if (itemDetail.ItemUrl.Contains("bonobos")) { Bonobos z = new Bonobos(); z.Bonoboss(itemDetail.ItemUrl, itemDetail.ItemWantedPrice, itemDetail.ItemStore, itemDetail.ItemCurrentPrice, itemDetail.ItemName); _context.ItemDetails.Add(z.RetunA()); } else if (itemDetail.ItemUrl.Contains("saksfifthavenue") || itemDetail.ItemUrl.Contains("gap") || itemDetail.ItemUrl.Contains("bananarepublic")) { Saksfifthavenue z = new Saksfifthavenue(); z.Saksfifthavenues(itemDetail.ItemUrl, itemDetail.ItemWantedPrice, itemDetail.ItemStore, itemDetail.ItemCurrentPrice, itemDetail.ItemName); _context.ItemDetails.Add(z.RetunA()); } else if (itemDetail.ItemUrl.Contains("hm")) { Hm z = new Hm(); z.Hms(itemDetail.ItemUrl, itemDetail.ItemWantedPrice, itemDetail.ItemStore, itemDetail.ItemCurrentPrice, itemDetail.ItemName); _context.ItemDetails.Add(z.RetunA()); } await _context.SaveChangesAsync(); return(CreatedAtAction("GetItemDetail", new { id = itemDetail.Id }, itemDetail)); }
private void DisplayError(string errorMessage) { Hm.Write("<div style='width=100%; color:red;'>" + errorMessage + "</div>"); }