private static InformationAboutSellerBot ReadSoldBotInformation(dynamic botInfoD) { InformationAboutSellerBot soldBotInformation = null; if (botInfoD != null) { string botUid = botInfoD.uid; string namePrefix = botInfoD.name_prefix; soldBotInformation = new InformationAboutSellerBot(botUid, namePrefix); } return(soldBotInformation); }
private static InformationAboutSale ReadInformationAboutSale(string result) { dynamic responseServerD = JsonConvert.DeserializeObject(result); dynamic soldItemsD = responseServerD.data.items; dynamic tradeTokensD = responseServerD.data.trade_tokens; dynamic botInfoD = responseServerD.data.bot_info; List <SoldItem> soldItems = ReadSoldItems(soldItemsD); List <string> tradeTokens = ReadTradeTokens(tradeTokensD); InformationAboutSellerBot soldBotInformation = ReadSoldBotInformation(botInfoD); InformationAboutSale soldInformation = new InformationAboutSale(soldItems, tradeTokens, soldBotInformation); return(soldInformation); }
internal InformationAboutSale(List <SoldItem> soldItems, List <string> tradeTokens, InformationAboutSellerBot informationAboutSellerBot) { SoldItems = soldItems; TradeTokens = tradeTokens; InformationAboutSellerBot = informationAboutSellerBot; }