Class Composer
Assembly: Zenoph.Notify.dll
Syntax
[ComVisible(true)]
[Guid("3E476579-8856-4d74-B4E1-E6131E3B3B82")]
public abstract class Composer : IComposer
Constructors
Composer()
Declaration
Composer(AuthProfile)
Declaration
public Composer(AuthProfile ap)
Parameters
Fields
__DEST_COUNTRYCODE_LABEL__
Declaration
protected static readonly string __DEST_COUNTRYCODE_LABEL__
Field Value
__DEST_INFO_LABEL__
Declaration
protected static readonly string __DEST_INFO_LABEL__
Field Value
_category
Declaration
protected MessageCategory _category
Field Value
_customDataLabel
Declaration
protected static object _customDataLabel
Field Value
_destIdsMap
Declaration
protected Dictionary<string, ComposerDestination> _destIdsMap
Field Value
_destNumberMap
Declaration
protected Dictionary<string, Dictionary<string, object>> _destNumberMap
Field Value
_destinations
Declaration
protected List<ComposerDestination> _destinations
Field Value
_userData
Declaration
protected UserData _userData
Field Value
Methods
addDestination(string, string, string, object)
Declaration
[ComVisible(false)]
protected NumberAddInfo addDestination(string phoneNumber, string countryCode, string messageId, object data)
Parameters
Returns
addDestination(ComposerDestination)
Declaration
[ComVisible(false)]
protected void addDestination(ComposerDestination cd)
Parameters
addDestination(ComposerDestination, string)
Declaration
[ComVisible(false)]
protected void addDestination(ComposerDestination cd, string countryCode)
Parameters
addDestinationsList(List<ComposerDestination>, string)
Declaration
[ComVisible(false)]
protected void addDestinationsList(List<ComposerDestination> compDestList, string countryCode)
Parameters
createComposerDestination(string, string, DestinationMode, object)
Declaration
[ComVisible(false)]
protected ComposerDestination createComposerDestination(string phoneNumber, string messageId, DestinationMode mode, object data)
Parameters
Returns
createComposerDestination(string, string, DestinationMode, object, bool)
Declaration
[ComVisible(false)]
protected ComposerDestination createComposerDestination(string phoneNumber, string messageId, DestinationMode mode, object data, bool scheduled)
Parameters
Returns
createDestinationMap(string, string, DestinationMode, object, bool)
Declaration
[ComVisible(false)]
protected virtual Dictionary<string, object> createDestinationMap(string phoneNumber, string messageId, DestinationMode mode, object data, bool scheduled)
Parameters
Returns
destinationIdExists(string)
Declaration
[ComVisible(true)]
protected bool destinationIdExists(string destId)
Parameters
Type |
Name |
Description |
string |
destId |
|
Returns
Declaration
[ComVisible(true)]
protected string[] formatPhoneNumber(string phoneNumber)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
|
Returns
Declaration
[ComVisible(true)]
protected string[] formatPhoneNumber(string phoneNumber, bool throwEx)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
|
bool |
throwEx |
|
Returns
Declaration
[ComVisible(true)]
protected bool formattedDestinationExists(string phoneNumber)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
|
Returns
getComposerDestinationById(string)
Declaration
protected ComposerDestination getComposerDestinationById(string messageId)
Parameters
Type |
Name |
Description |
string |
messageId |
|
Returns
getComposerDestinations(string)
Declaration
protected List<ComposerDestination> getComposerDestinations(string phoneNumber)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
|
Returns
getDestinationCountryCode(string)
Declaration
[ComVisible(false)]
protected string getDestinationCountryCode(string phoneNumber)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
|
Returns
getMappedDestinationById(string)
Declaration
protected ComposerDestination getMappedDestinationById(string destId)
Parameters
Type |
Name |
Description |
string |
destId |
|
Returns
getMappedDestinations(string)
Declaration
protected List<ComposerDestination> getMappedDestinations(string phoneNumber)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
|
Returns
getPhoneNumberFromMessageId(string)
Declaration
[ComVisible(false)]
protected string getPhoneNumberFromMessageId(string messageId)
Parameters
Type |
Name |
Description |
string |
messageId |
|
Returns
removeDestination(ComposerDestination)
Declaration
[ComVisible(false)]
protected bool removeDestination(ComposerDestination cd)
Parameters
Returns
removeDestinationsList(string, List<ComposerDestination>)
Declaration
protected void removeDestinationsList(string phoneNumber, List<ComposerDestination> destsList)
Parameters
setUserData(UserData)
Declaration
[ComVisible(false)]
public void setUserData(UserData ud)
Parameters
updateDestination(ComposerDestination, string)
Declaration
[ComVisible(false)]
protected bool updateDestination(ComposerDestination cd, string newPhoneNumber)
Parameters
Returns
validateCustomMessageId(string, bool)
Declaration
[ComVisible(false)]
protected NumberAddInfo validateCustomMessageId(string messageId, bool throwEx)
Parameters
Type |
Name |
Description |
string |
messageId |
|
bool |
throwEx |
|
Returns
validateDestinationUpdate(string, string)
Declaration
[ComVisible(false)]
protected virtual Dictionary<string, object> validateDestinationUpdate(string prePhoneNumber, string newPhoneNumber)
Parameters
Type |
Name |
Description |
string |
prePhoneNumber |
|
string |
newPhoneNumber |
|
Returns
Explicit Interface Implementations
addDestination(string)
Adds a phone number to the message destinations list.
Declaration
[ComVisible(false)]
virtual NumberAddInfo addDestination(string phoneNumber)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
The phone number to be added to the message destinations list
|
Returns
Exceptions
Type |
Condition |
Exception |
Thrown if phoneNumber is invalid or not permitted
|
addDestination(string, bool)
Adds a phone number to the message destinations list.
Declaration
[ComVisible(false)]
virtual NumberAddInfo addDestination(string phoneNumber, bool throwEx)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
The phone number to be added to the message destinations list
|
bool |
throwEx |
Exception Control Specifier (ECS) that indicates whether Exception should be
thrown or not when phoneNumber is invalid or not permitted
|
Returns
addDestination(string, bool, string)
Declaration
[ComVisible(false)]
virtual NumberAddInfo addDestination(string phoneNumber, bool throwEx, string messageId)
Parameters
Returns
addDestination(string, string)
Declaration
[ComVisible(false)]
virtual NumberAddInfo addDestination(string phoneNumber, string messageId)
Parameters
Returns
addDestinationEx(string, bool)
Adds a phone number to the message destinations list.
Declaration
[ComVisible(true)]
NumberAddInfo addDestinationEx(string phoneNumber, bool throwEx = true)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
The phone number to be added to the message destinations list.
|
bool |
throwEx |
Exception Control Specifier (ECS) that indicates whether Exception should be
thrown or not when phoneNumber is invalid or not permitted
|
Returns
addDestinationWithId(string, string, bool)
Declaration
[ComVisible(true)]
NumberAddInfo addDestinationWithId(string phoneNumber, string messageId, bool throwEx = true)
Parameters
Returns
addDestinationsFromCollection(List<string>)
Declaration
[ComVisible(false)]
int addDestinationsFromCollection(List<string> phoneNumbers)
Parameters
Returns
addDestinationsFromCollection(List<string>, bool)
Declaration
[ComVisible(false)]
int addDestinationsFromCollection(List<string> phoneNumbers, bool throwEx)
Parameters
Returns
addDestinationsFromCollection(string[])
Declaration
[ComVisible(false)]
int addDestinationsFromCollection(string[] phoneNumbers)
Parameters
Type |
Name |
Description |
string[] |
phoneNumbers |
|
Returns
addDestinationsFromCollection(string[], bool)
Declaration
[ComVisible(false)]
int addDestinationsFromCollection(string[] phoneNumbers, bool throwEx)
Parameters
Type |
Name |
Description |
string[] |
phoneNumbers |
|
bool |
throwEx |
|
Returns
addDestinationsFromCollectionEx(string[], bool)
Declaration
[ComVisible(true)]
int addDestinationsFromCollectionEx(string[] phoneNumbers, bool throwEx = false)
Parameters
Type |
Name |
Description |
string[] |
phoneNumbers |
|
bool |
throwEx |
|
Returns
addDestinationsFromTextStream(string)
Declaration
[ComVisible(true)]
int addDestinationsFromTextStream(string str)
Parameters
Type |
Name |
Description |
string |
str |
|
Returns
clearDestinations()
Declaration
[ComVisible(true)]
void clearDestinations()
destinationExists(string)
Declaration
[ComVisible(true)]
bool destinationExists(string phoneNumber)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
|
Returns
getCategory()
Declaration
[ComVisible(true)]
MessageCategory getCategory()
Returns
getDefaultDestinationCountry()
Declaration
[ComVisible(true)]
string[] getDefaultDestinationCountry()
Returns
getDefaultNumberPrefix()
Declaration
[ComVisible(true)]
string getDefaultNumberPrefix()
Returns
getDefaultTimeZone()
Declaration
[ComVisible(true)]
string[] getDefaultTimeZone()
Returns
getDestinationCountry(string)
Gets the country for the specified phone number
Declaration
[ComVisible(true)]
string getDestinationCountry(string phoneNumber)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
|
Returns
Type |
Description |
string |
The country for which phoneNumber applies.
|
getDestinationWriteMode(string)
Declaration
[ComVisible(true)]
DestinationMode getDestinationWriteMode(string phoneNumber)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
|
Returns
getDestinationWriteModeById(string)
Declaration
[ComVisible(true)]
DestinationMode getDestinationWriteModeById(string messageId)
Parameters
Type |
Name |
Description |
string |
messageId |
|
Returns
getDestinations()
Declaration
[ComVisible(true)]
ComposerDestinationsList getDestinations()
Returns
getDestinationsCount()
Declaration
[ComVisible(true)]
int getDestinationsCount()
Returns
getRouteCountries()
Declaration
[ComVisible(false)]
List<string[]> getRouteCountries()
Returns
getRouteCountriesEx()
Declaration
[ComVisible(true)]
object getRouteCountriesEx()
Returns
removeDestination(string)
Declaration
[ComVisible(true)]
virtual bool removeDestination(string phoneNumber)
Parameters
Type |
Name |
Description |
string |
phoneNumber |
|
Returns
removeDestinationById(string)
Declaration
[ComVisible(true)]
virtual bool removeDestinationById(string destId)
Parameters
Type |
Name |
Description |
string |
destId |
|
Returns
setDefaultNumberPrefix(string)
Declaration
[ComVisible(true)]
void setDefaultNumberPrefix(string dialCode)
Parameters
Type |
Name |
Description |
string |
dialCode |
|
updateDestination(string, string)
Declaration
[ComVisible(true)]
bool updateDestination(string prePhoneNumber, string newPhoneNumber)
Parameters
Type |
Name |
Description |
string |
prePhoneNumber |
|
string |
newPhoneNumber |
|
Returns
updateDestinationById(string, string)
Declaration
[ComVisible(true)]
virtual bool updateDestinationById(string destId, string newPhoneNumber)
Parameters
Returns
Implements