C# Class TL_App1, API-Platform

TL_App1 class
Inheritance: System.Web.UI.Page
Mostrar archivo Open project: attdevsupport/API-Platform

Public Methods

Method Description
BypassCertificateError ( ) : void

Neglect the ssl handshake error with authentication server

Protected Methods

Method Description
GetDeviceLocation_Click ( object sender, EventArgs e ) : void

Event that will be triggered when the user clicks on GetPhoneLocation button This method calls GetDeviceLocation Api

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

Private Methods

Method Description
DrawPanelForFailure ( Panel panelParam, string message ) : void

Displays error message

DrawPanelForGetLocationResult ( string attribute, string value, bool headerFlag ) : void

This method is used to draw table for successful response of get device locations

GetAccessToken ( AccessTokenType type ) : bool

Get access token based on the type parameter type values.

GetAuthCode ( ) : void

Redirects to authentication server to get the access code

GetDeviceLocation ( ) : void

This method invokes Device Location API and displays the location

IsTokenValid ( ) : string

This function validates access token related variables and returns VALID_ACCESS_TOKEN if it is valid otherwise, returns INVALID_ACCESS_TOKEN if refresh token expired or not able to read session variables return REFRESH_TOKEN, if access token in expired and refresh token is valid

ReadAndGetAccessToken ( ) : bool

Reads from session variables and gets access token

ReadConfigFile ( ) : bool

Read parameters from configuraton file

ReadTokenSessionVariables ( ) : void

This function 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

Method Details

BypassCertificateError() public static method

Neglect the ssl handshake error with authentication server
public static BypassCertificateError ( ) : void
return void

GetDeviceLocation_Click() protected method

Event that will be triggered when the user clicks on GetPhoneLocation button This method calls GetDeviceLocation Api
protected GetDeviceLocation_Click ( object sender, EventArgs e ) : void
sender object object that caused this event
e EventArgs Event that invoked this function
return void

Page_Load() protected method

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
protected Page_Load ( object sender, EventArgs e ) : void
sender object object that caused this event
e EventArgs Event that invoked this function
return void