Method | Description | |
---|---|---|
BtnSendMessage_Click ( object sender, EventArgs e ) : void |
Event, that gets called when user clicks on send message button, performs validations and initiates api call to send message
|
|
Page_Load ( object sender, EventArgs e ) : void |
This function is called when the application page is loaded into the web browser. This function reads the web.config file and gets the values of the attributes
|
Method | Description | |
---|---|---|
BypassCertificateError ( ) : void |
Neglect the ssl handshake error with authentication server
|
|
DrawPanelForFailure ( Panel panelParam, string message ) : void |
Displays error message
|
|
DrawPanelForSuccess ( Panel panelParam, string message ) : void |
Display success message
|
|
GetAccessToken ( AccessTokenType type ) : bool |
Get access token based on the type parameter type values.
|
|
GetAuthCode ( ) : void |
Redirect to OAuth and get Authorization Code
|
|
GetContentTypeFromExtension ( string extension ) : string |
Gets the mapping of extension with predefined content types
|
|
IsNumber ( string address ) : bool |
Validates a given string for digits
|
|
IsTokenValid ( ) : string |
Validates access token related variables
|
|
IsValidAddress ( ) : bool |
Validates the given addresses based on following conditions 1. Group messages should not allow short codes 2. Short codes should be 3-8 digits in length 3. Valid Email Address 4. Group message must contain more than one address 5. Valid Phone number
|
|
IsValidEmail ( string emailID ) : bool |
Validates given mail ID for standard mail format
|
|
IsValidFileSize ( ) : bool |
Validates for file size Per specification, the maximum file size should be less than 600 KB
|
|
IsValidMISDN ( string number ) : bool |
Validate given string for MSISDN
|
|
JoinTwoByteArrays ( byte firstByteArray, byte secondByteArray ) : MemoryStream |
Sums up two byte arrays.
|
|
ReadConfigFile ( ) : bool |
Read parameters from configuraton file
|
|
ReadTokenSessionVariables ( ) : bool |
Reads access token related session variables to local variables
|
|
ResetTokenSessionVariables ( ) : void |
This function resets access token related session variable to null
|
|
ResetTokenVariables ( ) : void |
This function resets access token related variable to null
|
|
SendMessage ( ArrayList attachments ) : void |
Sends message to the list of addresses provided.
|
protected BtnSendMessage_Click ( object sender, EventArgs e ) : void | ||
sender | object | object that initiated this method |
e | EventArgs | Event Agruments |
return | void |
protected Page_Load ( object sender, EventArgs e ) : void | ||
sender | object | Button that caused this event |
e | EventArgs | Event that invoked this function |
return | void |