Validate method
Validate request.
Implementation
@override
void Validate() {
super.Validate();
if (Attachments.isNotEmpty) {
EwsUtilities.ValidateParamCollection(Attachments, "Attachments");
}
if (AttachmentIds.isNotEmpty) {
EwsUtilities.ValidateParamCollection(AttachmentIds, "AttachmentIds");
}
if (AttachmentIds.isEmpty && Attachments.isEmpty) {
throw ArgumentException("CollectionIsEmpty, Attachments/AttachmentIds");
}
for (int i = 0; i < AdditionalProperties.length; i++) {
EwsUtilities.ValidateParam(
AdditionalProperties[i],
"AdditionalProperties[$i]",
);
}
}