public void handler(object v) { Qot_GetTicker.Response res = v as Qot_GetTicker.Response; if (callback != null) { int market = res.S2C.Security.Market; String symbol = res.S2C.Security.Code; if ((int)this.market == market && this.symbol.Equals(symbol)) { callback.callback(res.S2C.TickerListList.ToList()); } } }
public void execute(ProtoBufPackage pack) { response = Qot_GetTicker.Response.ParseFrom(pack.Bodys); }