UNPKG

@jaricardodev/ews-javascript-api

Version:
18 lines (17 loc) 1.13 kB
import {FindFolderResponse} from "../Responses/FindFolderResponse"; import {ExchangeService} from "../ExchangeService"; import {ServiceErrorHandling} from "../../Enumerations/ServiceErrorHandling"; import {XmlElementNames} from "../XmlElementNames"; import {ExchangeVersion} from "../../Enumerations/ExchangeVersion"; import {FindRequest} from "./FindRequest"; /** @internal */ export class FindFolderRequest extends FindRequest<FindFolderResponse> { constructor(service: ExchangeService, errorHandlingMode: ServiceErrorHandling) { super(service, errorHandlingMode); } CreateServiceResponse(service: ExchangeService, responseIndex: number): FindFolderResponse { return new FindFolderResponse(this.View.GetPropertySetOrDefault()); } GetMinimumRequiredServerVersion(): ExchangeVersion { return ExchangeVersion.Exchange2007_SP1; } GetResponseMessageXmlElementName(): string { return XmlElementNames.FindFolderResponseMessage; } GetResponseXmlElementName(): string { return XmlElementNames.FindFolderResponse; } GetXmlElementName(): string { return XmlElementNames.FindFolder; } }