public override void Merge(PersistObject persistObject)
        {
            OriginQuotation oq = (OriginQuotation)persistObject;
            if (this.timestamp >= oq.timestamp) return;

            this.modifyState = ModifyState.Modified;
            this.timestamp = oq.timestamp;
            if (oq.ask != null) { this.ask = oq.ask; }
            if (oq.bid != null) { this.bid = oq.bid; }
            if (oq.high != null) { this.high = oq.high; }
            if (oq.low != null) { this.low = oq.low; }
            this.origin = oq.origin;

            this.volume = oq.volume;
            this.totalVolume = oq.totalVolume;

            return;
        }
Esempio n. 2
0
 public abstract void Merge(PersistObject persistObject);