Exemple #1
0
        /// <summary>
        /// Executes this request.
        /// </summary>
        /// <returns>Service response.</returns>
        internal GetPasswordExpirationDateResponse Execute()
        {
            GetPasswordExpirationDateResponse serviceResponse = (GetPasswordExpirationDateResponse)this.InternalExecute();

            serviceResponse.ThrowIfNecessary();
            return(serviceResponse);
        }
Exemple #2
0
        /// <summary>
        /// Parses the response.
        /// </summary>
        /// <param name="reader">The reader.</param>
        /// <returns>Response object.</returns>
        internal override object ParseResponse(EwsServiceXmlReader reader)
        {
            GetPasswordExpirationDateResponse response = new GetPasswordExpirationDateResponse();

            response.LoadFromXml(reader, XmlElementNames.GetPasswordExpirationDateResponse);
            return(response);
        }
        /// <summary>
        /// Executes this request.
        /// </summary>
        /// <returns>Service response.</returns>
        internal async Task <GetPasswordExpirationDateResponse> Execute(CancellationToken token)
        {
            GetPasswordExpirationDateResponse serviceResponse = (GetPasswordExpirationDateResponse)await this.InternalExecuteAsync(token).ConfigureAwait(false);

            serviceResponse.ThrowIfNecessary();
            return(serviceResponse);
        }
Exemple #4
0
        /// <summary>
        /// Parses the response.
        /// </summary>
        /// <param name="jsonBody">The json body.</param>
        /// <returns>Response object.</returns>
        internal override object ParseResponse(JsonObject jsonBody)
        {
            GetPasswordExpirationDateResponse serviceResponse = new GetPasswordExpirationDateResponse();

            serviceResponse.LoadFromJson(jsonBody, this.Service);
            return(serviceResponse);
        }
 /// <summary>
 /// Parses the response.
 /// </summary>
 /// <param name="reader">The reader.</param>
 /// <returns>Response object.</returns>
 internal override object ParseResponse(EwsServiceXmlReader reader)
 {
     GetPasswordExpirationDateResponse response = new GetPasswordExpirationDateResponse();
     response.LoadFromXml(reader, XmlElementNames.GetPasswordExpirationDateResponse);
     return response;
 }