C# Class GenericRestConnector.RESTHelper

Show file Open project: websy85/generic-rest-connector Class Usage Examples

Public Properties

Property Type Description
UrlBase String
authInfo AuthInfo
authentication Authentication
cacheEndpointMap String>.Dictionary
cachedTables dynamic>.Dictionary
pageInfo PageInfo
pager Pager
tableCacheList List

Public Methods

Method Description
GetJSON ( ) : dynamic
Page ( ) : void
Prep ( ) : void
RESTHelper ( String>.Dictionary MParameters ) : System
SetActiveTable ( String tableName, String whereClause ) : void
addTableToCacheList ( String tableName ) : void
cacheTable ( String tableName, Int32 pageNumber, dynamic data ) : void
createFieldList ( String tableName, String fields ) : QvxField[]
getCachedData ( String tableName, Int32 pageNumber ) : dynamic

Private Methods

Method Description
AddHeaders ( WebClient wc ) : WebClient
getFieldAttr ( String fieldType ) : FieldAttrType
getFieldType ( String fieldType ) : QvxFieldType
getTableByName ( String name ) : dynamic

Method Details

GetJSON() public method

public GetJSON ( ) : dynamic
return dynamic

Page() public method

public Page ( ) : void
return void

Prep() public method

public Prep ( ) : void
return void

RESTHelper() public method

public RESTHelper ( String>.Dictionary MParameters ) : System
MParameters String>.Dictionary
return System

SetActiveTable() public method

public SetActiveTable ( String tableName, String whereClause ) : void
tableName String
whereClause String
return void

addTableToCacheList() public method

public addTableToCacheList ( String tableName ) : void
tableName String
return void

cacheTable() public method

public cacheTable ( String tableName, Int32 pageNumber, dynamic data ) : void
tableName String
pageNumber System.Int32
data dynamic
return void

createFieldList() public method

public createFieldList ( String tableName, String fields ) : QvxField[]
tableName String
fields String
return QvxField[]

getCachedData() public method

public getCachedData ( String tableName, Int32 pageNumber ) : dynamic
tableName String
pageNumber System.Int32
return dynamic

Property Details

UrlBase public property

public String UrlBase
return String

authInfo public property

public AuthInfo,GenericRestConnector authInfo
return AuthInfo

authentication public property

public Authentication,GenericRestConnector authentication
return Authentication

cacheEndpointMap public property

public Dictionary cacheEndpointMap
return String>.Dictionary

cachedTables public property

public Dictionary cachedTables
return dynamic>.Dictionary

pageInfo public property

public PageInfo pageInfo
return PageInfo

pager public property

public Pager,GenericRestConnector pager
return Pager

tableCacheList public property

public List tableCacheList
return List