}}
    Show / Hide Table of Contents

    Class SMSComposer

    Inheritance
    object
    Composer
    MessageComposer
    SMSComposer
    Implements
    IComposer
    IMessageComposer
    ISchedule
    ISMSComposer
    Inherited Members
    MessageComposer.getSender()
    MessageComposer.getMessageId(string)
    MessageComposer.messageIdExists(string)
    MessageComposer.getBatchId()
    MessageComposer.schedule()
    MessageComposer.isScheduled()
    MessageComposer.getMessage()
    MessageComposer.getScheduleInfo()
    MessageComposer.setDeliveryCallback(string, ContentType)
    MessageComposer.getDeliveryCallback()
    MessageComposer.notifyDeliveries()
    MessageComposer.validateDestinationSenderName(string)
    MessageComposer.setScheduleDateTime(DateTime?)
    MessageComposer.setScheduleDateTime(DateTime, string)
    MessageComposer.setScheduleDateTime(DateTime, string, string)
    MessageComposer.setScheduleDateTimeEx(double, string, string)
    MessageComposer.removeDestinationById(string)
    MessageComposer.updateDestinationById(string, string)
    Composer.setUserData(UserData)
    Composer.getCategory()
    Composer.getDestinationsCount()
    Composer.getDestinationWriteMode(string)
    Composer.getDestinationWriteModeById(string)
    Composer.getDefaultTimeZone()
    Composer.destinationExists(string)
    Composer.clearDestinations()
    Composer.removeDestination(string)
    Composer.updateDestination(string, string)
    Composer.addDestinationsFromTextStream(string)
    Composer.addDestinationsFromCollection(string[])
    Composer.addDestinationsFromCollection(string[], bool)
    Composer.addDestinationsFromCollection(List<string>)
    Composer.addDestinationsFromCollection(List<string>, bool)
    Composer.addDestinationsFromCollectionEx(string[], bool)
    Composer.addDestinationEx(string, bool)
    Composer.addDestinationWithId(string, string, bool)
    Composer.getDefaultDestinationCountry()
    Composer.getDestinationCountry(string)
    Composer.getDestinations()
    Composer.setDefaultNumberPrefix(string)
    Composer.getDefaultNumberPrefix()
    Composer.getRouteCountries()
    Composer.getRouteCountriesEx()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Zenoph.Notify.Compose
    Assembly: Zenoph.Notify.dll
    Syntax
    [ComVisible(true)]
    [Guid("5551461B-CD16-4411-BB05-533E19785F06")]
    public sealed class SMSComposer : MessageComposer, IComposer, IMessageComposer, ISchedule, ISMSComposer

    Constructors

    SMSComposer()

    Declaration
    public SMSComposer()

    SMSComposer(AuthProfile)

    Declaration
    public SMSComposer(AuthProfile ap)
    Parameters
    Type Name Description
    AuthProfile ap

    Fields

    __ALPHA_NUMERIC_SENDER_MAX_LEN__

    Declaration
    public static readonly int __ALPHA_NUMERIC_SENDER_MAX_LEN__
    Field Value
    Type Description
    int

    __NUMERIC_SENDER_MAX_LEN__

    Declaration
    public static readonly int __NUMERIC_SENDER_MAX_LEN__
    Field Value
    Type Description
    int

    Methods

    addDestination(string)

    Declaration
    [ComVisible(false)]
    public override NumberAddInfo addDestination(string phoneNumber)
    Parameters
    Type Name Description
    string phoneNumber
    Returns
    Type Description
    NumberAddInfo
    Overrides
    Composer.addDestination(string)

    addDestination(string, bool)

    Adds a phone number to the message destinations list.

    Declaration
    [ComVisible(false)]
    public override 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
    Type Description
    NumberAddInfo
    Overrides
    Composer.addDestination(string, bool)

    addDestination(string, bool, string)

    Declaration
    [ComVisible(false)]
    public override NumberAddInfo addDestination(string phoneNumber, bool throwEx, string messageId)
    Parameters
    Type Name Description
    string phoneNumber
    bool throwEx
    string messageId
    Returns
    Type Description
    NumberAddInfo
    Overrides
    Composer.addDestination(string, bool, string)

    addDestination(string, string)

    Declaration
    [ComVisible(false)]
    public override NumberAddInfo addDestination(string phoneNumber, string messageId)
    Parameters
    Type Name Description
    string phoneNumber
    string messageId
    Returns
    Type Description
    NumberAddInfo
    Overrides
    Composer.addDestination(string, string)

    create(object)

    Declaration
    [ComVisible(false)]
    public static SMSComposer create(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    SMSComposer

    createFromAuthProfile(AuthProfile)

    Declaration
    [ComVisible(true)]
    public SMSComposer createFromAuthProfile(AuthProfile ap)
    Parameters
    Type Name Description
    AuthProfile ap
    Returns
    Type Description
    SMSComposer

    getMessageCount(string, SMSType)

    Declaration
    [ComVisible(false)]
    public static int getMessageCount(string msg, SMSType type)
    Parameters
    Type Name Description
    string msg
    SMSType type
    Returns
    Type Description
    int

    getMessageVariables(string)

    Declaration
    [ComVisible(false)]
    public static string[] getMessageVariables(string msg)
    Parameters
    Type Name Description
    string msg
    Returns
    Type Description
    string[]

    getMessageVariables(string, bool)

    Declaration
    [ComVisible(false)]
    public static string[] getMessageVariables(string msg, bool trim)
    Parameters
    Type Name Description
    string msg
    bool trim
    Returns
    Type Description
    string[]

    getMessageVariablesCount(string)

    Declaration
    [ComVisible(false)]
    public static int getMessageVariablesCount(string message)
    Parameters
    Type Name Description
    string message
    Returns
    Type Description
    int

    getSMSTypes()

    Declaration
    public static List<SMSType> getSMSTypes()
    Returns
    Type Description
    List<SMSType>

    setMessage(string)

    Declaration
    [ComVisible(false)]
    public override void setMessage(string message)
    Parameters
    Type Name Description
    string message
    Overrides
    MessageComposer.setMessage(string)

    setSender(string)

    Declaration
    [ComVisible(true)]
    public override void setSender(string sender)
    Parameters
    Type Name Description
    string sender
    Overrides
    MessageComposer.setSender(string)

    Explicit Interface Implementations

    addDestination(string, bool, string[])

    Declaration
    [ComVisible(false)]
    NumberAddInfo addDestination(string phoneNumber, bool throwEx, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    bool throwEx
    string[] values
    Returns
    Type Description
    NumberAddInfo

    addDestination(string, bool, string[], string)

    Declaration
    [ComVisible(false)]
    NumberAddInfo addDestination(string phoneNumber, bool throwEx, string[] values, string messageId)
    Parameters
    Type Name Description
    string phoneNumber
    bool throwEx
    string[] values
    string messageId
    Returns
    Type Description
    NumberAddInfo

    addDestination(string, string[])

    Declaration
    [ComVisible(false)]
    NumberAddInfo addDestination(string phoneNumber, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    Returns
    Type Description
    NumberAddInfo

    addDestination(string, string[], string)

    Declaration
    [ComVisible(false)]
    NumberAddInfo addDestination(string phoneNumber, string[] values, string messageId)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    string messageId
    Returns
    Type Description
    NumberAddInfo

    addPersonalisedDestination(string, bool, string[])

    Declaration
    [ComVisible(false)]
    NumberAddInfo addPersonalisedDestination(string phoneNumber, bool throwEx, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    bool throwEx
    string[] values
    Returns
    Type Description
    NumberAddInfo

    addPersonalisedDestination(string, bool, string[], string)

    Declaration
    [ComVisible(false)]
    NumberAddInfo addPersonalisedDestination(string phoneNumber, bool throwEx, string[] values, string messageId)
    Parameters
    Type Name Description
    string phoneNumber
    bool throwEx
    string[] values
    string messageId
    Returns
    Type Description
    NumberAddInfo

    addPersonalisedDestination(string, string[])

    Declaration
    [ComVisible(false)]
    NumberAddInfo addPersonalisedDestination(string phoneNumber, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    Returns
    Type Description
    NumberAddInfo

    addPersonalisedDestination(string, string[], string)

    Declaration
    [ComVisible(false)]
    NumberAddInfo addPersonalisedDestination(string phoneNumber, string[] values, string messageId)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    string messageId
    Returns
    Type Description
    NumberAddInfo

    addPersonalisedDestinationEx(string, bool, object, string)

    Declaration
    [ComVisible(true)]
    NumberAddInfo addPersonalisedDestinationEx(string phoneNumber, bool throwEx = true, object values = null, string messageId = null)
    Parameters
    Type Name Description
    string phoneNumber
    bool throwEx
    object values
    string messageId
    Returns
    Type Description
    NumberAddInfo

    getDefaultSMSType()

    Declaration
    [ComVisible(true)]
    SMSType getDefaultSMSType()
    Returns
    Type Description
    SMSType

    getDestinationWriteMode(string, string[])

    Declaration
    [ComVisible(false)]
    DestinationMode getDestinationWriteMode(string phoneNumber, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    Returns
    Type Description
    DestinationMode

    getMessageCount()

    Declaration
    [ComVisible(true)]
    int getMessageCount()
    Returns
    Type Description
    int

    getMessageCountEx(string, SMSType)

    Declaration
    [ComVisible(true)]
    int getMessageCountEx(string msg, SMSType type)
    Parameters
    Type Name Description
    string msg
    SMSType type
    Returns
    Type Description
    int

    getMessageId(string, string[])

    Declaration
    string getMessageId(string phoneNumber, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    Returns
    Type Description
    string

    getMessageVariables()

    Declaration
    [ComVisible(true)]
    string[] getMessageVariables()
    Returns
    Type Description
    string[]

    getMessageVariables(bool)

    Declaration
    [ComVisible(false)]
    string[] getMessageVariables(bool trim)
    Parameters
    Type Name Description
    bool trim
    Returns
    Type Description
    string[]

    getMessageVariablesCount()

    Declaration
    [ComVisible(true)]
    int getMessageVariablesCount()
    Returns
    Type Description
    int

    getMessageVariablesCountEx(string)

    Declaration
    [ComVisible(true)]
    int getMessageVariablesCountEx(string message)
    Parameters
    Type Name Description
    string message
    Returns
    Type Description
    int

    getMessageVariablesEx(bool, string)

    Declaration
    [ComVisible(true)]
    string[] getMessageVariablesEx(bool trim = true, string msg = null)
    Parameters
    Type Name Description
    bool trim
    string msg
    Returns
    Type Description
    string[]

    getPersonalisedDestinationMessageId(string, string[])

    Declaration
    [ComVisible(true)]
    string getPersonalisedDestinationMessageId(string phoneNumber, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    Returns
    Type Description
    string

    getPersonalisedDestinationWriteMode(string, string[])

    Declaration
    [ComVisible(true)]
    DestinationMode getPersonalisedDestinationWriteMode(string phoneNumber, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    Returns
    Type Description
    DestinationMode

    getPersonalisedMessagePreview(string)

    Declaration
    [ComVisible(false)]
    string[] getPersonalisedMessagePreview(string phoneNumber)
    Parameters
    Type Name Description
    string phoneNumber
    Returns
    Type Description
    string[]

    getPersonalisedMessagePreview(string, string[])

    Declaration
    [ComVisible(false)]
    string getPersonalisedMessagePreview(string phoneNumber, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    Returns
    Type Description
    string

    getPersonalisedMessagePreview(string, PersonalisedValues)

    Declaration
    [ComVisible(false)]
    string getPersonalisedMessagePreview(string phoneNumber, PersonalisedValues pv)
    Parameters
    Type Name Description
    string phoneNumber
    PersonalisedValues pv
    Returns
    Type Description
    string

    getPersonalisedMessagePreviewEx(string, object)

    Declaration
    [ComVisible(true)]
    PersonalisedMessagesList getPersonalisedMessagePreviewEx(string phoneNumber, object values = null)
    Parameters
    Type Name Description
    string phoneNumber
    object values
    Returns
    Type Description
    PersonalisedMessagesList

    getPersonalisedValues(string)

    Declaration
    [ComVisible(true)]
    PersonalisedValuesList getPersonalisedValues(string phoneNumber)
    Parameters
    Type Name Description
    string phoneNumber
    Returns
    Type Description
    PersonalisedValuesList

    getPersonalisedValuesById(string)

    Declaration
    [ComVisible(true)]
    string[] getPersonalisedValuesById(string messageId)
    Parameters
    Type Name Description
    string messageId
    Returns
    Type Description
    string[]

    getRegisteredSenderIds()

    Declaration
    [ComVisible(true)]
    string[] getRegisteredSenderIds()
    Returns
    Type Description
    string[]

    getSMSType()

    Declaration
    SMSType getSMSType()
    Returns
    Type Description
    SMSType

    isPersonalised()

    Declaration
    [ComVisible(true)]
    bool isPersonalised()
    Returns
    Type Description
    bool

    personalisedValuesExists(string, string[])

    Declaration
    [ComVisible(true)]
    bool personalisedValuesExists(string phoneNumber, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    Returns
    Type Description
    bool

    removeDestination(string, string[])

    Declaration
    [ComVisible(false)]
    bool removeDestination(string phoneNumber, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    Returns
    Type Description
    bool

    removePersonalisedDestination(string, string[])

    Declaration
    [ComVisible(true)]
    bool removePersonalisedDestination(string phoneNumber, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    Returns
    Type Description
    bool

    removePersonalisedValues(string, string[])

    Declaration
    [ComVisible(true)]
    bool removePersonalisedValues(string phoneNumber, string[] values)
    Parameters
    Type Name Description
    string phoneNumber
    string[] values
    Returns
    Type Description
    bool

    setMessage(string, bool)

    Declaration
    [ComVisible(false)]
    void setMessage(string message, bool isPsnd)
    Parameters
    Type Name Description
    string message
    bool isPsnd

    setMessageCategory(MessageCategory)

    Declaration
    [ComVisible(true)]
    void setMessageCategory(MessageCategory category)
    Parameters
    Type Name Description
    MessageCategory category

    setMessageEx(string, object)

    Declaration
    [ComVisible(true)]
    void setMessageEx(string msg, object psnd = null)
    Parameters
    Type Name Description
    string msg
    object psnd

    setSMSType(string)

    Declaration
    [ComVisible(false)]
    void setSMSType(string type)
    Parameters
    Type Name Description
    string type

    setSMSType(SMSType)

    Declaration
    [ComVisible(false)]
    void setSMSType(SMSType type)
    Parameters
    Type Name Description
    SMSType type

    setSMSTypeEx(object)

    Declaration
    [ComVisible(true)]
    void setSMSTypeEx(object type)
    Parameters
    Type Name Description
    object type

    updatePersonalisedValues(string, string[])

    Declaration
    [ComVisible(false)]
    bool updatePersonalisedValues(string phoneNumber, string[] newValues)
    Parameters
    Type Name Description
    string phoneNumber
    string[] newValues
    Returns
    Type Description
    bool

    updatePersonalisedValues(string, string[], string)

    Declaration
    [ComVisible(false)]
    bool updatePersonalisedValues(string phoneNumber, string[] newValues, string messageId)
    Parameters
    Type Name Description
    string phoneNumber
    string[] newValues
    string messageId
    Returns
    Type Description
    bool

    updatePersonalisedValues(string, string[], string[])

    Declaration
    [ComVisible(false)]
    bool updatePersonalisedValues(string phoneNumber, string[] newValues, string[] prevValues)
    Parameters
    Type Name Description
    string phoneNumber
    string[] newValues
    string[] prevValues
    Returns
    Type Description
    bool

    updatePersonalisedValuesById(string, string[])

    Declaration
    [ComVisible(true)]
    bool updatePersonalisedValuesById(string messageId, string[] newValues)
    Parameters
    Type Name Description
    string messageId
    string[] newValues
    Returns
    Type Description
    bool

    updatePersonalisedValuesEx(string, string[], object)

    Declaration
    [ComVisible(true)]
    bool updatePersonalisedValuesEx(string phoneNumber, string[] newValues, object prevValues = null)
    Parameters
    Type Name Description
    string phoneNumber
    string[] newValues
    object prevValues
    Returns
    Type Description
    bool

    updatePersonalisedValuesExWithId(string, string[], string)

    Declaration
    [ComVisible(true)]
    bool updatePersonalisedValuesExWithId(string phoneNumber, string[] newValues, string newMessageId)
    Parameters
    Type Name Description
    string phoneNumber
    string[] newValues
    string newMessageId
    Returns
    Type Description
    bool

    Implements

    IComposer
    IMessageComposer
    ISchedule
    ISMSComposer
    Back to top