/// <summary>
        /// Creates a NotFound instance of the result
        /// </summary>
        /// <returns>The canonical NotFound result</returns>
        internal static GetUserPhotoResponse GetNotFoundResponse()
        {
            GetUserPhotoResponse serviceResponse = new GetUserPhotoResponse();
            serviceResponse.Results.Status = GetUserPhotoStatus.PhotoOrUserNotFound;

            return serviceResponse;
        }
Пример #2
0
        /// <summary>
        /// Creates a NotFound instance of the result
        /// </summary>
        /// <returns>The canonical NotFound result</returns>
        internal static GetUserPhotoResponse GetNotFoundResponse()
        {
            GetUserPhotoResponse serviceResponse = new GetUserPhotoResponse();

            serviceResponse.Results.Status = GetUserPhotoStatus.PhotoOrUserNotFound;

            return(serviceResponse);
        }
Пример #3
0
        /// <summary>
        /// Parses the response.
        /// </summary>
        /// <param name="reader">The reader.</param>
        /// <param name="responseHeaders">The HTTP response headers</param>
        /// <returns>Response object.</returns>
        internal override object ParseResponse(EwsServiceXmlReader reader, WebHeaderCollection responseHeaders)
        {
            GetUserPhotoResponse response = new GetUserPhotoResponse();

            response.LoadFromXml(reader, XmlElementNames.GetUserPhotoResponse);
            response.ReadHeader(responseHeaders);
            return(response);
        }
 /// <summary>
 /// Parses the response.
 /// </summary>
 /// <param name="reader">The reader.</param>
 /// <param name="responseHeaders">The HTTP response headers</param>
 /// <returns>Response object.</returns>
 internal override object ParseResponse(EwsServiceXmlReader reader, WebHeaderCollection responseHeaders)
 {
     GetUserPhotoResponse response = new GetUserPhotoResponse();
     response.LoadFromXml(reader, XmlElementNames.GetUserPhotoResponse);
     response.ReadHeader(responseHeaders);
     return response;
 }