Beispiel #1
0
        public async Task <TagInventoryResult> TagInventoryWithMemoryBuffer(TagInventoryWithBufferParams args = null)
        {
            if (args == null)
            {
                args = new TagInventoryWithBufferParams(new TagInventoryOptionalParams(TimeSpan.FromMilliseconds(300)));
            }
            var responses = await SendReceive(CommandDataPacket.TagInventory(ReaderCommand.TagInventoryWithMemoryBuffer, args));

            return(new TagInventoryResult(responses));
        }
Beispiel #2
0
        public async Task <TagInventoryResult> TagInventory(TagInventoryParams args = null)
        {
            if (args == null)
            {
                args = new TagInventoryParams();
            }
            var responses = await SendReceive(CommandDataPacket.TagInventory(ReaderCommand.TagInventory, args));

            return(new TagInventoryResult(responses));
        }
Beispiel #3
0
        public void TagInventoryParams_should_serialize_as_example()
        {
            var res = CommandDataPacket.TagInventory(ReaderCommand.TagInventory,
                                                     new TagInventoryParams
            {
                QValue         = 4,
                OptionalParams = new TagInventoryOptionalParams(TimeSpan.FromMilliseconds(1100))
            }).Serialize();

            res.Should().Equal(SamplesData.TagInventoryRequest1);
        }
Beispiel #4
0
        public void TagInventoryParamsWithBuffer_should_serialize_as_example()
        {
            var res = CommandDataPacket.TagInventory(ReaderCommand.TagInventoryWithMemoryBuffer,
                                                     new TagInventoryParams
            {
                QValue         = 4,
                Session        = SessionValue.S1,
                OptionalParams = new TagInventoryOptionalParams(TimeSpan.FromMilliseconds(300))
            }).Serialize();

            res.Should().Equal(SamplesData.TagInventoryWithBufferRequest1);
        }