public void handler(object v) { Qot_GetBroker.Response res = v as Qot_GetBroker.Response; if (callback != null) { if (res.S2C.Security.Market == (int)this.market && res.S2C.Security.Code.Equals(this.symbol)) { Brokers brokers = new Brokers(); brokers.BrokerAskList = res.S2C.BrokerAskListList.ToList(); brokers.BrokerBidList = res.S2C.BrokerBidListList.ToList(); callback.callback(brokers); } } }
public void execute(ProtoBufPackage pack) { response = Qot_GetBroker.Response.ParseFrom(pack.Bodys); }