Class ContactImportService
Implementation of a service to import, save, load and delete import contacts.
Inheritance
Implements
Inherited Members
Namespace: Simplic.PlugIn.SAC.Contact
Assembly: Simplic.PlugIn.SAC.dll
Syntax
public class ContactImportService : IContactImportService
Constructors
| Improve this Doc View SourceContactImportService(IContactImportRepository)
Initializes a new istance of ContactImportService with dependency injection.
Declaration
public ContactImportService(IContactImportRepository contactImportRepository)
Parameters
Type | Name | Description |
---|---|---|
IContactImportRepository | contactImportRepository |
Methods
| Improve this Doc View SourceDelete(ImportContact)
Deletes an import contact.
Declaration
public bool Delete(ImportContact obj)
Parameters
Type | Name | Description |
---|---|---|
ImportContact | obj | The import contact to delete. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the delete was successfull. |
Delete(Guid)
Delets an import contact.
Declaration
public bool Delete(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | The id of an import contact. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the delete was successfull. |
Get(Guid)
Gets an import contact.
Declaration
public ImportContact Get(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | The id of an import contact. |
Returns
Type | Description |
---|---|
ImportContact | The import contact with the given id. |
GetAll()
Gets all import contacts.
Declaration
public IEnumerable<ImportContact> GetAll()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ImportContact> | An enumberable of all import contacts. |
GetAllEnqueued()
Gets all enqueued import cotacts.
Declaration
public IEnumerable<ImportContact> GetAllEnqueued()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ImportContact> | An enumerable of all enqueued import contacts. |
Import(ImportContact)
Imports an import contact.
Declaration
public bool Import(ImportContact obj)
Parameters
Type | Name | Description |
---|---|---|
ImportContact | obj | An import contact instance. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the import was successfull. |
ImportAllEnqueued()
Imports all enqueued import cotacts.
Declaration
public bool ImportAllEnqueued()
Returns
Type | Description |
---|---|
System.Boolean | Whether all imports were successfull. |
Save(ImportContact)
Saves an import contact.
Declaration
public bool Save(ImportContact obj)
Parameters
Type | Name | Description |
---|---|---|
ImportContact | obj | An import contact instance. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the save was successfull. |