Microsoft.Protocols.TestSuites.MS_OXCMAPIHTTP.S02_RequestTypesForAddressBookServerEndpoint.BuildUpdateStatRequestBody C# (CSharp) Method

BuildUpdateStatRequestBody() private method

Build UpdateStat request body.
private BuildUpdateStatRequestBody ( bool hasState, STAT stat, bool deltaRequested ) : UpdateStatRequestBody
hasState bool A Boolean value that specifies whether the State field is present.
stat STAT A STAT structure that specifies the state of a specific address book container.
deltaRequested bool A Boolean value that specifies whether the client is requesting a value to be returned in the Delta field of the response.
return UpdateStatRequestBody
        private UpdateStatRequestBody BuildUpdateStatRequestBody(bool hasState, STAT stat, bool deltaRequested)
        {
            UpdateStatRequestBody updateStatRequestBody = new UpdateStatRequestBody();
            updateStatRequestBody.Reserved = 0x0;
            updateStatRequestBody.HasState = hasState;
            if (hasState)
            {
                updateStatRequestBody.State = stat;
            }

            updateStatRequestBody.DeltaRequested = deltaRequested;

            byte[] auxIn = new byte[] { };
            updateStatRequestBody.AuxiliaryBuffer = auxIn;
            updateStatRequestBody.AuxiliaryBufferSize = (uint)auxIn.Length;
            return updateStatRequestBody;
        }