ProtoMessage

StockSharp.cTrader.Native.Model

* Base message that is used for all messages that are sent to/from Open API proxy of cTrader platform.

Implements: IMessage<ProtoMessage>, IMessage, IEquatable<ProtoMessage>, IDeepCloneable<ProtoMessage>, IBufferMessage

Properties

ClientMsgId
public string ClientMsgId { get; set; }
value = protoMessage.ClientMsgId
protoMessage.ClientMsgId = value

Request message id, assigned by the client that will be returned in the response.

HasClientMsgId
public bool HasClientMsgId { get; }
value = protoMessage.HasClientMsgId

Gets whether the "clientMsgId" field is set

HasPayload
public bool HasPayload { get; }
value = protoMessage.HasPayload

Gets whether the "payload" field is set

HasPayloadType
public bool HasPayloadType { get; }
value = protoMessage.HasPayloadType

Gets whether the "payloadType" field is set

Payload
public ByteString Payload { get; set; }
value = protoMessage.Payload
protoMessage.Payload = value

Serialized protobuf message that corresponds to payloadType.

PayloadType
public uint PayloadType { get; set; }
value = protoMessage.PayloadType
protoMessage.PayloadType = value

Contains id of ProtoPayloadType or other custom PayloadTypes (e.g. ProtoOAPayloadType).

Methods

ClearClientMsgId
public void ClearClientMsgId()
protoMessage.ClearClientMsgId()

Clears the value of the "clientMsgId" field

ClearPayload
public void ClearPayload()
protoMessage.ClearPayload()

Clears the value of the "payload" field

ClearPayloadType
public void ClearPayloadType()
protoMessage.ClearPayloadType()

Clears the value of the "payloadType" field

Fields

ClientMsgIdFieldNumber
public const int ClientMsgIdFieldNumber
value = ProtoMessage.ClientMsgIdFieldNumber

Field number for the "clientMsgId" field.

PayloadFieldNumber
public const int PayloadFieldNumber
value = ProtoMessage.PayloadFieldNumber

Field number for the "payload" field.

PayloadTypeFieldNumber
public const int PayloadTypeFieldNumber
value = ProtoMessage.PayloadTypeFieldNumber

Field number for the "payloadType" field.