Exemplo n.º 1
0
        public ProtoMessage CreateGetSpotSubscriptionResponse(ProtoOASpotSubscription spotSubscription, string clientMsgId = null)
        {
            var _msg = ProtoOAGetSpotSubscriptionRes.CreateBuilder();

            _msg.SetSpotSubscription(spotSubscription);
            return(CreateMessage((uint)_msg.PayloadType, _msg.Build().ToByteString(), clientMsgId));
        }
        public ProtoMessage CreateGetSpotSubscriptionResponse(ProtoOASpotSubscription spotSubscription, string clientMsgId = null)
        {
            var _msg = new ProtoOAGetSpotSubscriptionRes();

            _msg.spotSubscription = spotSubscription;
            return(CreateMessage((uint)_msg.payloadType, Utils.Serialize <ProtoOAGetSpotSubscriptionRes>(_msg), clientMsgId));
        }
Exemplo n.º 3
0
 public ProtoOAGetSpotSubscriptionRes GetGetSpotSubscriptionResponse(byte[] msg = null)
 {
     return(ProtoOAGetSpotSubscriptionRes.CreateBuilder().MergeFrom(GetPayload(msg)).Build());
 }