C# Class GenericRestConnector.RESTHelper

Exibir arquivo 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_oe property

public String UrlBase
return String

authInfo public_oe property

public AuthInfo,GenericRestConnector authInfo
return AuthInfo

authentication public_oe property

public Authentication,GenericRestConnector authentication
return Authentication

cacheEndpointMap public_oe property

public Dictionary cacheEndpointMap
return String>.Dictionary

cachedTables public_oe property

public Dictionary cachedTables
return dynamic>.Dictionary

pageInfo public_oe property

public PageInfo pageInfo
return PageInfo

pager public_oe property

public Pager,GenericRestConnector pager
return Pager

tableCacheList public_oe property

public List tableCacheList
return List