InfoAPILib
Bilioteka za pristup InfoAPI-ju
Public Member Functions | Properties | List of all members
InfoAPILib.InfoAPIParams Class Reference

InfoAPIParams klasa obezbeđuje funkcionalnost parametara koji se prosleđuju prilikom poziva API funkciji. Treba napraviti klasu koja nasleđuje ovu klasu i podesiti je za poziv konkretne API funkcije More...

Inheritance diagram for InfoAPILib.InfoAPIParams:
InfoAPILib.InfoAPIProperties InfoAPILib.InfoAPIBase InfoAPILib.InfoAPIParamsINFO

Public Member Functions

void AddAttachment (IInfoAPIAttachment pAttachment)
 Dodaj prilog u listu priloga koji se šalju API funkciji. More...
 
void AddTableReference (string pTableName, IEnumerable< object > pTableData)
 Dodaj referencu za tabelu u listu referenci tabela. Pod tabelom se smatra svaki tabelarni podatak, odnosno bilo kakva IEnumerable lista podataka. More...
 
- Public Member Functions inherited from InfoAPILib.InfoAPIProperties
bool ShouldSerializeTableReferences ()
 
bool SaveDataBaseAttachmentToFile (string pFilePathName)
 Snima database_attachemnt u binarnu datoteku. Zadržava se izvorni format podataka. Ako su opdaci u PLAON_OBJ formatu onda će biti sačuvani kao JSON tekst. More...
 
void LoadDatabaseAttachmentFromFile (string pFilePathName)
 
void PrepareDatabaseAttachment ()
 
void UnpackDatabaseAttachment ()
 
DatabaseAttachmentTable GetDatabaseAttachmentTable (string pTableName)
 
void ReadTable< T > (string pTableName, IList< T > pDestinationTable)
 
new string Serialize ()
 Serijalizuje objekat More...
 
- Public Member Functions inherited from InfoAPILib.InfoAPIBase
 InfoAPIBase ()
 Конструктор More...
 
string Serialize ()
 Serijalizuje objekat More...
 
string Serialize (bool pIndented)
 Serializuje objekat sa identacijom More...
 
void Deserialize (string pSerializedInput)
 Deserijalizuje string u objekat More...
 

Properties

InfoAPIRequest RequestEnvelope [get, set]
 
string result_database_format [get, set]
 Format u kome tabelarni podaci koje funkcija vraća treba da budu. More...
 
string default_result_database_format [get, protected set]
 
- Properties inherited from InfoAPILib.InfoAPIProperties
string database_format [get, set]
 
bool remove_empty_table_fields [get, set]
 
string DataBaseAttachment [get, protected set]
 
InfoAPIDatabaseAttachment DataBaseAttachmentUnpacked [get]
 
string paging_sort_exp [get, set]
 
int paging_selected_page [get, set]
 
int paging_page_len [get, set]
 
- Properties inherited from InfoAPILib.InfoAPIBase
string _class_name [get, set]
 Naziv klase. U API porukama je ovo uglavnom informativnog karaktera, a dobro dođe kada se analiziraju složene strukture More...
 
string app_option [get, set]
 app_option(char) Oznaka API funcije koju klijent poziva. Ovo je podatak na osnovu koga API server zna koju funkciju treba da izvrši. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from InfoAPILib.InfoAPIProperties
static bool ByteArrayToFile (string _FileName, byte[] _ByteArray)
 
- Public Attributes inherited from InfoAPILib.InfoAPIBase
IInfoAPIFormatter Formatter
 Objekat koji vrši serijalizaciju i deserijalizaciju More...
 
- Protected Attributes inherited from InfoAPILib.InfoAPIProperties
InfoAPITableReferences TableReferences = new InfoAPITableReferences()
 
InfoAPIAttachments Attachments = new InfoAPIAttachments()
 
- Package Attributes inherited from InfoAPILib.InfoAPIBase
string __class_name = ""
 

Detailed Description

InfoAPIParams klasa obezbeđuje funkcionalnost parametara koji se prosleđuju prilikom poziva API funkciji. Treba napraviti klasu koja nasleđuje ovu klasu i podesiti je za poziv konkretne API funkcije

Member Function Documentation

void InfoAPILib.InfoAPIParams.AddAttachment ( IInfoAPIAttachment  pAttachment)

Dodaj prilog u listu priloga koji se šalju API funkciji.

Parameters
pAttachmentPrilog koji se dodaje
void InfoAPILib.InfoAPIParams.AddTableReference ( string  pTableName,
IEnumerable< object >  pTableData 
)

Dodaj referencu za tabelu u listu referenci tabela. Pod tabelom se smatra svaki tabelarni podatak, odnosno bilo kakva IEnumerable lista podataka.

Struktura sloga tabelarnog podataka može biti proizvoljna. Obično API funkcija definiše nazive i strukturu tabela koji joj se mogu poslati.

Parameters
pTableNameNaziv tabele koja se dodaje kao parametar
pTableDataPodaci u tabelarnom obliku (bilo kakva IEnumerable lista). Struktura sloga tabelarnog podataka može biti proizvoljna. Obično API funkcija definiše nazive i strukturu tabela koji joj se mogu poslati.

Property Documentation

string InfoAPILib.InfoAPIParams.result_database_format
getset

Format u kome tabelarni podaci koje funkcija vraća treba da budu.


The documentation for this class was generated from the following file: