Example #1
0
    private IMessage SetFrameSyncRateNotify(ByteString message)
    {
        GSSetFrameSyncRateNotify request = new GSSetFrameSyncRateNotify();

        ByteUtils.ByteStringToObject(request, message);
        GSSetFrameSyncRateAck reply = new GSSetFrameSyncRateAck()
        {
            Status = (UInt32)ErrorCode.Ok
        };

        msgHandler.OnHotelSetFrameSyncRate(new FrameSyncRate()
        {
            GameID     = request.GameID,
            RoomID     = request.RoomID,
            FrameRate  = request.FrameRate,
            FrameIndex = request.FrameIdx,
            Timestamp  = request.TimeStamp,
            EnableGS   = request.EnableGS,
        });

        return(reply);
    }