The WapPushAction enumeration specifies the type of action to be taken
when the WAP Push message is received by the destination mobile device, as per as per
WAP-167 (WAP
Service Indication Specification) by Open Mobile Alliance (OMA).
Namespace: mCore
Assembly: mCoreLib (in mCoreLib.dll)
| Member Name | Description |
| SignalLow | 'signal-low': The Service Indication MUST be postponed without user intervention |
| SignalMedium | 'signal-medium': The Service Indication MUST be presented as soon as the implementation allows that to be carried out in a non-user-intrusive manner. |
| SignalHigh | 'signal-high': The Service Indication MUST be presented as soon as the implementation allows that to be carried out in a non-user-intrusive manner, or earlier if considered appropriate (which MAY result in a user-intrusive behaviour). This decision can either be based on user preference settings or be carried out at the discretion of the implementation. |
mCore.GeneralException
| Visual Basic |
| Public Class MyClass Public WithEvents objSMS As New mCore.SMS Public Sub SendWapPush() Dim objWP As mCore.WapPush = objSMS.WapPush Try SetCommParameters() objWP.Destination = "+919873094767" objWP.Text = "Check your emails online" objWP.URL = "http://www.mobulus.com/mobile" objWP.Action = mCore.WapPushAction.SignalMedium objWP.Created = DateTime.Now objWP.Expiry = "1W" objWP.Send() MsgBox("WAP Push Sent!") Catch ex As mCore.WapPushException MsgBox(ex.Message, MsgBoxStyle.Critical, "mCore Demo") Catch ex As mCore.GeneralException MsgBox(ex.Message, MsgBoxStyle.Critical, "mCore Demo") Catch ex As Exception End Try End Sub Public Sub SetCommParameters() Try objSMS.Port = "COM1" objSMS.BaudRate = mCore.BaudRate.BaudRate_19200 objSMS.DataBits = mCore.DataBits.Eight objSMS.StopBits = mCore.StopBits.One objSMS.Parity = mCore.Parity.None objSMS.FlowControl = mCore.FlowControl.RTS_CTS Catch ex As mCore.GeneralException MsgBox(ex.Message) Catch ex As Exception End Try End Function End Class |
| C# |
| class MyClass { public mCore.SMS objSMS = new mCore.SMS(); public static void SendWapPush() { mCore.WapPush objWP = objSMS.WapPush(); try {
SetCommParameters(); catch (mCore.WapPushException e) catch
(mCore.GeneralException e) |