/// <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; }
/// <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); }
/// <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; }