A class indicates the UpdateStat request type.
Inheritance: AddressBookRequestBodyBase
        /// <summary>
        /// This method is used by the client to update the STAT structure to reflect the client's changes.
        /// </summary>
        /// <param name="updateStatRequestBody">The UpdateStat request type request body.</param>
        /// <returns>The response body of UpdateStat request type.</returns>
        public UpdateStatResponseBody UpdateStat(UpdateStatRequestBody updateStatRequestBody)
        {
            CommonResponse         commonResponse         = this.SendAddressBookRequest(updateStatRequestBody, RequestType.UpdateStat);
            UpdateStatResponseBody updateStatResponseBody = UpdateStatResponseBody.Parse(commonResponse.ResponseBodyRawData);

            this.VerifyUpdateStatResponseBody(updateStatResponseBody);

            return(updateStatResponseBody);
        }
        /// <summary>
        /// Build UpdateStat request body.
        /// </summary>
        /// <param name="hasState">A Boolean value that specifies whether the State field is present.</param>
        /// <param name="stat">A STAT structure that specifies the state of a specific address book container.</param>
        /// <param name="deltaRequested">A Boolean value that specifies whether the client is requesting a value to be returned in the Delta field of the response.</param>
        /// <returns>The UpdateStat request body.</returns>
        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;
        }
        /// <summary>
        /// This method is used by the client to update the STAT structure to reflect the client's changes.
        /// </summary>
        /// <param name="updateStatRequestBody">The UpdateStat request type request body.</param>
        /// <returns>The response body of UpdateStat request type.</returns>
        public UpdateStatResponseBody UpdateStat(UpdateStatRequestBody updateStatRequestBody)
        {
            CommonResponse commonResponse = this.SendAddressBookRequest(updateStatRequestBody, RequestType.UpdateStat);
            UpdateStatResponseBody updateStatResponseBody = UpdateStatResponseBody.Parse(commonResponse.ResponseBodyRawData);
            this.VerifyUpdateStatResponseBody(updateStatResponseBody);

            return updateStatResponseBody;
        }