Class CallListManager
Manager to work with simplic contact call lists
Inheritance
Inherited Members
Namespace: Simplic.PlugIn.SAC.Contact
Assembly: Simplic.PlugIn.SAC.dll
Syntax
public class CallListManager
Constructors
| Improve this Doc View SourceCallListManager(ICallListTemplate)
Initialize new call list manager
Declaration
public CallListManager(ICallListTemplate template)
Parameters
Type | Name | Description |
---|---|---|
ICallListTemplate | template | Instance of the template generator |
Methods
| Improve this Doc View SourceAddContact(Guid, Guid)
Assign a contact to a call list
Declaration
public void AddContact(Guid contactId, Guid callListId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contactId | Unique contact id |
System.Guid | callListId | Unique call list id |
ClearCallList(Guid)
Remove all contacts from a call list
Declaration
public void ClearCallList(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique call list id |
CreateCallList(String, Int32, Nullable<Guid>)
Create a new call list
Declaration
public CallList CreateCallList(string name, int userId, Guid? templateConfiguration)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the list |
System.Int32 | userId | User to which the list belongs |
System.Nullable<System.Guid> | templateConfiguration | Configuration guid, pass an null if no configuration should be used |
Returns
Type | Description |
---|---|
CallList | Instance of a call list |
Delete(Guid)
Remove a call list with all connections
Declaration
public void Delete(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique call list id |
DeleteSqlTemplate(Guid)
Delet the sql template
Declaration
public void DeleteSqlTemplate(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique template id |
Get(Guid)
Gets a call list by its id. The call list will not be fileld
Declaration
public CallList Get(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique contact list id |
Returns
Type | Description |
---|---|
CallList | If the list exists, an instance of the list will be returned |
GetSqlTemplate(Guid)
Get a sql template instance
Declaration
public CallListSqlTemplate GetSqlTemplate(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique template id |
Returns
Type | Description |
---|---|
CallListSqlTemplate | An instance of a sql template |
RemoveContact(Guid)
Remove a contact from all call lists
Declaration
public int RemoveContact(Guid contactId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contactId | Unique contact id |
Returns
Type | Description |
---|---|
System.Int32 | Amount of removed assignments |
RemoveContact(Guid, Guid)
Remove a contact from a call list
Declaration
public void RemoveContact(Guid contactId, Guid callListId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contactId | Unique contact id |
System.Guid | callListId | Unique call list id |
Save(CallList)
Save or create a call list
Declaration
public void Save(CallList list)
Parameters
Type | Name | Description |
---|---|---|
CallList | list | Call list instance |
SaveSqlTemplate(CallListSqlTemplate)
Save or create a call list sql template
Declaration
public void SaveSqlTemplate(CallListSqlTemplate template)
Parameters
Type | Name | Description |
---|---|---|
CallListSqlTemplate | template | Template instance |