Ejemplo n.º 1
0
    public PingServiceRequestResponse(long id_ = 0, ENUM_PING_SERVICE_STATUS status_ = ENUM_PING_SERVICE_STATUS.OK)
    {
        Head = new MessageHead()
        {
            ID     = id_,
            NodeID = 0,
            Type   = MessageType.ACK_PingService_OK,
        };

        Status = status_;
    }
Ejemplo n.º 2
0
    public PingServiceRequestResponse(long requestId_)
    {
        Head = new MessageHead()
        {
            ID     = 0,
            NodeID = 0,
            Type   = MessageType.ACK_PingService_OK,
        };

        RequestID = requestId_;
        Status    = ENUM_PING_SERVICE_STATUS.OK;
    }
Ejemplo n.º 3
0
    public override int Deserialize(byte[] data_, int size_)
    {
        int idx = base.Deserialize(data_, size_);

        idx = GetLong(out _requestId, ref Data, Size, idx);

        int status;

        idx    = GetInt(out status, ref Data, Size, idx);
        Status = (ENUM_PING_SERVICE_STATUS)status;

        return(idx);
    }