Exemple #1
0
        public Item GetItem(long itemId)
        {
            Item item = itemConverter.FromModel(context.Item.Find(itemId));

            SetSocketGemstones(item);

            return(item);
        }
        public BlackMarketListing FromModel(Maple2.Sql.Model.BlackMarketListing value)
        {
            if (value == null)
            {
                return(null);
            }

            var listing = new BlackMarketListing();

            listing.Id           = value.Id;
            listing.AccountId    = value.AccountId;
            listing.CharacterId  = value.CharacterId;
            listing.CreationTime = value.CreationTime.ToEpochSeconds();
            listing.ExpiryTime   = value.ExpiryTime.ToEpochSeconds();
            listing.Price        = value.Price;
            listing.Item         = itemConverter.FromModel(value.Item);

            return(listing);
        }