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

        serviceResponse.Results.Status = GetUserPhotoStatus.PhotoOrUserNotFound;

        return(serviceResponse);
    }
Пример #2
0
    object ParseResponse(EwsServiceXmlReader reader, WebHeaderCollection responseHeaders)
    {
        GetUserPhotoResponse response = new GetUserPhotoResponse();

        response.LoadFromXml(reader, XmlElementNames.GetUserPhotoResponse);
        response.ReadHeader(responseHeaders);
        return(response);
    }