public string GetInfo() { return($"{PrintInCentre(Date.ToShortDateString())}" + $"{PrintInCentre(Seller.SecondName)}" + $"{PrintInCentre(Buyer.SecondName)}" + $"{PrintInCentre(StockType.Type, 20)}" + $"{PrintInCentre(StockAmount.ToString())}" + $"{PrintInCentre(string.Format($"{Cash:N0}"))}"); }
// Use this for initialization void Start() { SA = GameObject.Find("_AudioManager").GetComponent <StockAmount>(); stockSlider = GetComponent <Slider>(); stockSlider.onValueChanged.AddListener(setStock); stockSlider.value = SA.stock; GameObject textN = transform.Find("StockLives").gameObject; if (textN) { if (GetComponent <Slider>().value == 1) { textN.GetComponent <Text>().text = stockSlider.value.ToString() + " Life"; } else { textN.GetComponent <Text>().text = stockSlider.value.ToString() + " Lives"; } } }
public async Task <OfferListContainer> GetLVBOrFBBInventory(int page = 1, StockType stockType = StockType.None, StockAmount stockAmount = StockAmount.None, string quantityRange = null, string query = null) { var queryParameters = new Dictionary <string, string>() { { "page", page.ToString() } }; if (stockType != StockType.None) { queryParameters.Add("state", stockType.ToString().ToUpper()); } if (stockAmount != StockAmount.None) { queryParameters.Add("stock", stockAmount.ToString().ToUpper()); } if (quantityRange != null) { queryParameters.Add("quantity", quantityRange); } if (query != null) { queryParameters.Add("query", query); } var response = await Get("/inventory", queryParameters).ConfigureAwait(false); return(await BolApiHelper.GetContentFromResponse <OfferListContainer>(response).ConfigureAwait(false)); }