namespace Neo.Afx.WinService.Messages { public enum MessageTypeEnum { Email = 1, Sms } public enum SmsDeliveryMethodEnum : short { Vodazone = 1, Swift = 2, Vodacom = 3 } #region MessageSendState /// /// Defines the result of sending a message. /// public enum MessageSendState { /// /// Indicates that sending succeeded. /// Ok, /// /// Indicates that the message format is unknown, possibly due to decryption failure. /// UnknownFormatError, /// /// Indicates that authentication failed. /// InvalidCredentialsError, /// /// Indicates that schema validation failed. /// InvalidSchemaError, /// /// Indicates that an unspecified error occured. /// UnspecifiedError } #endregion #region RecipientType /// /// Defines the possible types of recipients /// public enum RecipientType { /// /// The default recipient type. /// To, /// /// Recipients that should be CC'ed. /// Cc, /// /// Recipients that should be BCC'ed. /// Bcc } #endregion #region Recipient /// /// Describes a recipient. /// public struct Recipient { /// /// The type of the recipient. /// public RecipientType Type; /// /// The recipient's address. /// public string Address; /// /// Initializes a new instance of the structure /// with a recipient type of "To". /// /// The address of the recipient. public Recipient(string address) : this(RecipientType.To, address) { } /// /// Initializes a new instance of the structure. /// /// The type of the recipient. /// The address of the recipient. public Recipient(RecipientType type, string address) { this.Type = type; this.Address = address; } } #endregion }