/** * Initializes a new instance of the ExecuteDiagnosticMethodResponse class. * * @param service The service */ public ExecuteDiagnosticMethodResponse(ExchangeService service) { super(); EwsUtilities.ewsAssert(service != null, "ExecuteDiagnosticMethodResponse.ctor", "service is null"); }
/** * Initializes a new instance of the CreateAttachmentResponse class. * * @param attachment the attachment */ public CreateAttachmentResponse(Attachment attachment) { super(); EwsUtilities.ewsAssert(attachment != null, "CreateAttachmentResponse.ctor", "attachment is null"); this.attachment = attachment; }
/** * Initializes a new instance of the class. * * @param owner the owner */ protected NameResolution(NameResolutionCollection owner) { EwsUtilities.ewsAssert(owner != null, "NameResolution.ctor", "owner is null."); this.owner = owner; }
/** * Represents a list of suggested name resolutions. * * @param service the service */ public NameResolutionCollection(ExchangeService service) { EwsUtilities.ewsAssert(service != null, "NameResolutionSet.ctor", "service is null."); this.service = service; }
/** * Initializes a new instance of ItemIdWrapper. * * @param itemId the item id */ protected ItemIdWrapper(ItemId itemId) { EwsUtilities.ewsAssert(itemId != null, "ItemIdWrapper.ctor", "itemId is null"); this.itemId = itemId; }
/** * Initializes a new instance of FolderIdWrapper. * * @param folderId the folder id */ public FolderIdWrapper(FolderId folderId) { EwsUtilities.ewsAssert(folderId != null, "FolderIdWrapper.ctor", "folderId is null"); this.folderId = folderId; }
/** * Initializes a new instance of the class. * * @param propertySet the property set */ protected SyncResponse(PropertySet propertySet) { super(); this.propertySet = propertySet; EwsUtilities.ewsAssert(this.propertySet != null, "SyncResponse.ctor", "PropertySet should not be null"); }
/** * Initializes a new instance of the UpdateFolderResponse class. * * @param folder The folder */ public UpdateFolderResponse(Folder folder) { super(); EwsUtilities.ewsAssert(folder != null, "UpdateFolderResponse.ctor", "folder is null"); this.folder = folder; }
/** * Initializes a new instance of the class. * * @param item the item * @param propertySet the property set */ public GetItemResponse(Item item, PropertySet propertySet) { super(); this.item = item; this.propertySet = propertySet; EwsUtilities.ewsAssert(this.propertySet != null, "GetItemResponse.ctor", "PropertySet should not be null"); }
/** * Initializes a new instance of the DeleteAttachmentResponse class. * * @param attachment the attachment */ public DeleteAttachmentResponse(Attachment attachment) { super(); EwsUtilities.ewsAssert(attachment != null, "DeleteAttachmentResponse.ctor", "attachment is null"); this.attachment = attachment; }
/** * Initializes a new instance of the class. * * @param userConfiguration the user configuration */ public GetUserConfigurationResponse(UserConfiguration userConfiguration) { super(); EwsUtilities.ewsAssert(userConfiguration != null, "GetUserConfigurationResponse.ctor", "userConfiguration is null"); this.userConfiguration = userConfiguration; }
/** * The owner of this attachment collection. * * @param value accepts ServiceObject */ public void setOwner(ServiceObject value) { Item item = (Item) value; EwsUtilities.ewsAssert(item != null, "AttachmentCollection.IOwnedProperty.set_Owner", "value is not a descendant of ItemBase"); this.owner = item; }
/** * Initializes a new instance. * * @param uri The URI. */ protected ServiceObjectPropertyDefinition(String uri) { this(); EwsUtilities.ewsAssert(!(uri == null || uri.isEmpty()), "ServiceObjectPropertyDefinition.ctor", "uri is null or empty"); this.uri = uri; }
/** * Adds the specified change. * * @param change the change */ public void add(TChange change) { EwsUtilities.ewsAssert(change != null, "ChangeList.Add", "change is null"); this.changes.add(change); }
/** * Initializes a new instance of the PlayOnPhoneResponse class. * * @param service the service */ public PlayOnPhoneResponse(ExchangeService service) { super(); EwsUtilities.ewsAssert(service != null, "PlayOnPhoneResponse.ctor", "service is null"); this.phoneCallId = new PhoneCallId(); }
/** * Creates the property instance. * * @param owner The owner. * @return ComplexProperty. */ @Override public ComplexProperty createPropertyInstance(ServiceObject owner) { Folder folder = (Folder) owner; EwsUtilities.ewsAssert(folder != null, "PermissionCollectionPropertyDefinition.CreatePropertyInstance", "The owner parameter is not of type Folder or a derived class."); return new FolderPermissionCollection(folder); }
/** * Writes the XmlData property to Xml. * * @param writer the writer * @throws XMLStreamException the XML stream exception * @throws ServiceXmlSerializationException the service xml serialization exception */ private void writeXmlDataToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { EwsUtilities.ewsAssert(writer != null, "UserConfiguration.WriteXmlDataToXml", "writer is null"); writeByteArrayToXml(writer, this.xmlData, XmlElementNames.XmlData); }
/** * Initializes a new instance of the class. * * @param service the service */ public ResolveNamesResponse(ExchangeService service) { super(); EwsUtilities.ewsAssert(service != null, "ResolveNamesResponse.ctor", "service is null"); this.resolutions = new NameResolutionCollection(service); }
/** * Remote entry at index. * * @param index The index. */ protected void internalRemoveAt(int index) { EwsUtilities.ewsAssert(index >= 0 && index < this.getCount(), "ComplexPropertyCollection.InternalRemoveAt", "index is out of range."); this.internalRemove(this.items.get(index)); }
/** * Adds specified response. * * @param response The response. */ public void add(TResponse response) { EwsUtilities.ewsAssert(response != null, "EwsResponseList.Add", "response is null"); if (response.getResult().ordinal() > this.overallResult.ordinal()) { this.overallResult = response.getResult(); } this.responses.add(response); }