Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 internal InformationAboutSale(List <SoldItem> soldItems, List <string> tradeTokens, InformationAboutSellerBot informationAboutSellerBot)
 {
     SoldItems   = soldItems;
     TradeTokens = tradeTokens;
     InformationAboutSellerBot = informationAboutSellerBot;
 }