A class indicates the GetPropList request type.
Inheritance: AddressBookRequestBodyBase
コード例 #1
0
        /// <summary>
        /// This method is used by the client to get a list of all of the properties that have values on an object.
        /// </summary>
        /// <param name="getPropListRequestBody">The GetPropList request type request body.</param>
        /// <returns>The response body of the GetPropList request type.</returns>
        public GetPropListResponseBody GetPropList(GetPropListRequestBody getPropListRequestBody)
        {
            CommonResponse          commonResponse          = this.SendAddressBookRequest(getPropListRequestBody, RequestType.GetPropList);
            GetPropListResponseBody getPropListResponseBody = GetPropListResponseBody.Parse(commonResponse.ResponseBodyRawData);

            this.VerifyGetPropListResponseBody(getPropListResponseBody);

            return(getPropListResponseBody);
        }
        /// <summary>
        /// Build the GetPropList request body.
        /// </summary>
        /// <param name="flag">A set of bit flags that specify options to the server.</param>
        /// <param name="mid">A unsigned integer that specifies the object for which to return properties.</param>
        /// <returns>The GetPropList request body.</returns>
        private GetPropListRequestBody BuildGetPropListRequestBody(uint flag, uint mid)
        {
            GetPropListRequestBody getPropListRequestBody = new GetPropListRequestBody();
            getPropListRequestBody.Flags = flag;
            getPropListRequestBody.CodePage = (uint)RequiredCodePages.CP_TELETEX;
            getPropListRequestBody.MinmalId = mid;
            byte[] auxIn = new byte[] { };
            getPropListRequestBody.AuxiliaryBufferSize = (uint)auxIn.Length;
            getPropListRequestBody.AuxiliaryBuffer = auxIn;

            return getPropListRequestBody;
        }
コード例 #3
0
        /// <summary>
        /// This method is used by the client to get a list of all of the properties that have values on an object.
        /// </summary>
        /// <param name="getPropListRequestBody">The GetPropList request type request body.</param>
        /// <returns>The response body of the GetPropList request type.</returns>
        public GetPropListResponseBody GetPropList(GetPropListRequestBody getPropListRequestBody)
        {
            CommonResponse commonResponse = this.SendAddressBookRequest(getPropListRequestBody, RequestType.GetPropList);
            GetPropListResponseBody getPropListResponseBody = GetPropListResponseBody.Parse(commonResponse.ResponseBodyRawData);
            this.VerifyGetPropListResponseBody(getPropListResponseBody);

            return getPropListResponseBody;
        }