C# 클래스 TL_App1, API-Platform

TL_App1 class
상속: System.Web.UI.Page
파일 보기 프로젝트 열기: attdevsupport/API-Platform

공개 메소드들

메소드 설명
BypassCertificateError ( ) : void

Neglect the ssl handshake error with authentication server

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

BypassCertificateError() 공개 정적인 메소드

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

GetDeviceLocation_Click() 보호된 메소드

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
리턴 void

Page_Load() 보호된 메소드

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
리턴 void