Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit RootUnit;
- // *************************************************
- // Generated By: JsonToDelphiClass - 0.65
- // Project link: https://github.com/PKGeorgiev/Delphi-JsonToDelphiClass
- // Generated On: 2018-09-06 23:18:47
- // *************************************************
- // Created By : Petar Georgiev - 2014
- // WebSite : http://pgeorgiev.com
- // *************************************************
- interface
- uses Generics.Collections, Rest.Json;
- type
- TItemClass = class
- private
- FCONFIG_INIVENDAAUTO: String;
- FDATA: String;
- FDAV_IMPRIMEDAVINFO: String;
- FEMIT_BAIRRO: String;
- FEMIT_CEP: String;
- FEMIT_CNPJ: Extended;
- FEMIT_CODESTADO: Extended;
- FEMIT_CODMUNI: Extended;
- FEMIT_CODPAIS: String;
- FEMIT_COMPL: String;
- FEMIT_EMAIL: String;
- FEMIT_ENDER: String;
- FEMIT_ESTADO: String;
- FEMIT_FANTASIA: String;
- FEMIT_IE: Extended;
- FEMIT_IM: String;
- FEMIT_INDICERATISSQN: Extended;
- FEMIT_INDICEREGIMETRIB: Extended;
- FEMIT_INDICEREGTRIBISSQN: Extended;
- FEMIT_INDRATISSQN: String;
- FEMIT_LICENCA: String;
- FEMIT_MUNIC: String;
- FEMIT_NUM: Extended;
- FEMIT_PAIS: String;
- FEMIT_RAZAO: String;
- FEMIT_REGIMETRIB: String;
- FEMIT_REGTRIBISSQN: String;
- FEMIT_UF: String;
- FEQUIP_AMBIENTE: Extended;
- FEQUIP_BOOLFORMATARXML: Extended;
- FEQUIP_BOOLSALVACFEENVIO: Extended;
- FEQUIP_BOOLSALVARCFECANC: Extended;
- FEQUIP_BOOLSAVARCFE: Extended;
- FEQUIP_BOOLSEPARARPCNPJ: Extended;
- FEQUIP_BOOLSEPARARPMES: Extended;
- FEQUIP_BOOLUTF8: String;
- FEQUIP_CAMINHOSATDLL: Extended;
- FEQUIP_CODATIVSAT: Extended;
- FEQUIP_CODEMERG: Extended;
- FEQUIP_CODUF: String;
- FEQUIP_IDAMBIENTE: String;
- FEQUIP_IDMODELSTDSAT: String;
- FEQUIP_MARCAMODEL: Extended;
- FEQUIP_MODELSTDSAT: Extended;
- FEQUIP_PAGCOD: String;
- FEQUIP_SN: String;
- FEQUIP_VERSAO: Extended;
- FEXTR_MSGCONTRIBUINTE: Extended;
- FEXTR_SATCOMPLETO: Extended;
- FHORA: String;
- FID: Extended;
- FIMP_BOOLIMPFIRSTLINE: Extended;
- FIMP_BOOLUSARESCPOS: String;
- FIMP_COLUNAS: Extended;
- FIMP_CORTAPAPEL: Extended;
- FIMP_DEVICEBAUD: String;
- FIMP_DEVICEDATABYTES: String;
- FIMP_DEVICEHANDSH: Extended;
- FIMP_DEVICEHANDSHKBOLL: Extended;
- FIMP_DEVICEHARDFLW: String;
- FIMP_DEVICEPARITY: Extended;
- FIMP_DEVICEPARITYBOOL: Extended;
- FIMP_DEVICEPORTA: Extended;
- FIMP_DEVICESOFTFLW: Extended;
- FIMP_DEVICESTOPBYTES: Extended;
- FIMP_ESPENTRELINES: Extended;
- FIMP_IDPORTA: String;
- FIMP_INDMODELO: String;
- FIMP_INDPAGCODIGO: Extended;
- FIMP_LINHASPULAR: Extended;
- FIMP_MODELO: Extended;
- FIMP_PAGCODIGO: Extended;
- FIMP_PORTA: Extended;
- FKEY_UNLOCK: String;
- FNUM_COPIASSAT: String;
- FPDV_IP: String;
- FPDV_MAC: String;
- FPDV_NCAIXA: Extended;
- FPDV_SISOPERACIONAL: String;
- FPOS_BAIXO: String;
- FPOS_CIMA: String;
- FPOS_ESPACOFINAL: String;
- FPOS_MARGEMDIREITA: String;
- FPOS_MARGEM_ESQUERDA: String;
- FPROMO_ATIVADO: String;
- FPROMO_DATAFIM: String;
- FPROMO_DATAINI: String;
- FPROMO_MENSAGEM: String;
- FPROMO_VALOR: String;
- FSOFTH_ASSINATURASW: Extended;
- FSOFTH_CNPJ: Extended;
- FSO_IPTERM: String;
- FSO_MEMORY: String;
- FSO_NAMEWINDOWS: String;
- FTAMANHO_PAPEL: String;
- FTIPOEXTRATODESC: String;
- FTIPOEXTRATO_BOLL: String;
- public
- property CONFIG_INIVENDAAUTO: String read FCONFIG_INIVENDAAUTO write FCONFIG_INIVENDAAUTO;
- property DATA: String read FDATA write FDATA;
- property DAV_IMPRIMEDAVINFO: String read FDAV_IMPRIMEDAVINFO write FDAV_IMPRIMEDAVINFO;
- property EMIT_BAIRRO: String read FEMIT_BAIRRO write FEMIT_BAIRRO;
- property EMIT_CEP: String read FEMIT_CEP write FEMIT_CEP;
- property EMIT_CNPJ: Extended read FEMIT_CNPJ write FEMIT_CNPJ;
- property EMIT_CODESTADO: Extended read FEMIT_CODESTADO write FEMIT_CODESTADO;
- property EMIT_CODMUNI: Extended read FEMIT_CODMUNI write FEMIT_CODMUNI;
- property EMIT_CODPAIS: String read FEMIT_CODPAIS write FEMIT_CODPAIS;
- property EMIT_COMPL: String read FEMIT_COMPL write FEMIT_COMPL;
- property EMIT_EMAIL: String read FEMIT_EMAIL write FEMIT_EMAIL;
- property EMIT_ENDER: String read FEMIT_ENDER write FEMIT_ENDER;
- property EMIT_ESTADO: String read FEMIT_ESTADO write FEMIT_ESTADO;
- property EMIT_FANTASIA: String read FEMIT_FANTASIA write FEMIT_FANTASIA;
- property EMIT_IE: Extended read FEMIT_IE write FEMIT_IE;
- property EMIT_IM: String read FEMIT_IM write FEMIT_IM;
- property EMIT_INDICERATISSQN: Extended read FEMIT_INDICERATISSQN write FEMIT_INDICERATISSQN;
- property EMIT_INDICEREGIMETRIB: Extended read FEMIT_INDICEREGIMETRIB write FEMIT_INDICEREGIMETRIB;
- property EMIT_INDICEREGTRIBISSQN: Extended read FEMIT_INDICEREGTRIBISSQN write FEMIT_INDICEREGTRIBISSQN;
- property EMIT_INDRATISSQN: String read FEMIT_INDRATISSQN write FEMIT_INDRATISSQN;
- property EMIT_LICENCA: String read FEMIT_LICENCA write FEMIT_LICENCA;
- property EMIT_MUNIC: String read FEMIT_MUNIC write FEMIT_MUNIC;
- property EMIT_NUM: Extended read FEMIT_NUM write FEMIT_NUM;
- property EMIT_PAIS: String read FEMIT_PAIS write FEMIT_PAIS;
- property EMIT_RAZAO: String read FEMIT_RAZAO write FEMIT_RAZAO;
- property EMIT_REGIMETRIB: String read FEMIT_REGIMETRIB write FEMIT_REGIMETRIB;
- property EMIT_REGTRIBISSQN: String read FEMIT_REGTRIBISSQN write FEMIT_REGTRIBISSQN;
- property EMIT_UF: String read FEMIT_UF write FEMIT_UF;
- property EQUIP_AMBIENTE: Extended read FEQUIP_AMBIENTE write FEQUIP_AMBIENTE;
- property EQUIP_BOOLFORMATARXML: Extended read FEQUIP_BOOLFORMATARXML write FEQUIP_BOOLFORMATARXML;
- property EQUIP_BOOLSALVACFEENVIO: Extended read FEQUIP_BOOLSALVACFEENVIO write FEQUIP_BOOLSALVACFEENVIO;
- property EQUIP_BOOLSALVARCFECANC: Extended read FEQUIP_BOOLSALVARCFECANC write FEQUIP_BOOLSALVARCFECANC;
- property EQUIP_BOOLSAVARCFE: Extended read FEQUIP_BOOLSAVARCFE write FEQUIP_BOOLSAVARCFE;
- property EQUIP_BOOLSEPARARPCNPJ: Extended read FEQUIP_BOOLSEPARARPCNPJ write FEQUIP_BOOLSEPARARPCNPJ;
- property EQUIP_BOOLSEPARARPMES: Extended read FEQUIP_BOOLSEPARARPMES write FEQUIP_BOOLSEPARARPMES;
- property EQUIP_BOOLUTF8: String read FEQUIP_BOOLUTF8 write FEQUIP_BOOLUTF8;
- property EQUIP_CAMINHOSATDLL: Extended read FEQUIP_CAMINHOSATDLL write FEQUIP_CAMINHOSATDLL;
- property EQUIP_CODATIVSAT: Extended read FEQUIP_CODATIVSAT write FEQUIP_CODATIVSAT;
- property EQUIP_CODEMERG: Extended read FEQUIP_CODEMERG write FEQUIP_CODEMERG;
- property EQUIP_CODUF: String read FEQUIP_CODUF write FEQUIP_CODUF;
- property EQUIP_IDAMBIENTE: String read FEQUIP_IDAMBIENTE write FEQUIP_IDAMBIENTE;
- property EQUIP_IDMODELSTDSAT: String read FEQUIP_IDMODELSTDSAT write FEQUIP_IDMODELSTDSAT;
- property EQUIP_MARCAMODEL: Extended read FEQUIP_MARCAMODEL write FEQUIP_MARCAMODEL;
- property EQUIP_MODELSTDSAT: Extended read FEQUIP_MODELSTDSAT write FEQUIP_MODELSTDSAT;
- property EQUIP_PAGCOD: String read FEQUIP_PAGCOD write FEQUIP_PAGCOD;
- property EQUIP_SN: String read FEQUIP_SN write FEQUIP_SN;
- property EQUIP_VERSAO: Extended read FEQUIP_VERSAO write FEQUIP_VERSAO;
- property EXTR_MSGCONTRIBUINTE: Extended read FEXTR_MSGCONTRIBUINTE write FEXTR_MSGCONTRIBUINTE;
- property EXTR_SATCOMPLETO: Extended read FEXTR_SATCOMPLETO write FEXTR_SATCOMPLETO;
- property HORA: String read FHORA write FHORA;
- property ID: Extended read FID write FID;
- property IMP_BOOLIMPFIRSTLINE: Extended read FIMP_BOOLIMPFIRSTLINE write FIMP_BOOLIMPFIRSTLINE;
- property IMP_BOOLUSARESCPOS: String read FIMP_BOOLUSARESCPOS write FIMP_BOOLUSARESCPOS;
- property IMP_COLUNAS: Extended read FIMP_COLUNAS write FIMP_COLUNAS;
- property IMP_CORTAPAPEL: Extended read FIMP_CORTAPAPEL write FIMP_CORTAPAPEL;
- property IMP_DEVICEBAUD: String read FIMP_DEVICEBAUD write FIMP_DEVICEBAUD;
- property IMP_DEVICEDATABYTES: String read FIMP_DEVICEDATABYTES write FIMP_DEVICEDATABYTES;
- property IMP_DEVICEHANDSH: Extended read FIMP_DEVICEHANDSH write FIMP_DEVICEHANDSH;
- property IMP_DEVICEHANDSHKBOLL: Extended read FIMP_DEVICEHANDSHKBOLL write FIMP_DEVICEHANDSHKBOLL;
- property IMP_DEVICEHARDFLW: String read FIMP_DEVICEHARDFLW write FIMP_DEVICEHARDFLW;
- property IMP_DEVICEPARITY: Extended read FIMP_DEVICEPARITY write FIMP_DEVICEPARITY;
- property IMP_DEVICEPARITYBOOL: Extended read FIMP_DEVICEPARITYBOOL write FIMP_DEVICEPARITYBOOL;
- property IMP_DEVICEPORTA: Extended read FIMP_DEVICEPORTA write FIMP_DEVICEPORTA;
- property IMP_DEVICESOFTFLW: Extended read FIMP_DEVICESOFTFLW write FIMP_DEVICESOFTFLW;
- property IMP_DEVICESTOPBYTES: Extended read FIMP_DEVICESTOPBYTES write FIMP_DEVICESTOPBYTES;
- property IMP_ESPENTRELINES: Extended read FIMP_ESPENTRELINES write FIMP_ESPENTRELINES;
- property IMP_IDPORTA: String read FIMP_IDPORTA write FIMP_IDPORTA;
- property IMP_INDMODELO: String read FIMP_INDMODELO write FIMP_INDMODELO;
- property IMP_INDPAGCODIGO: Extended read FIMP_INDPAGCODIGO write FIMP_INDPAGCODIGO;
- property IMP_LINHASPULAR: Extended read FIMP_LINHASPULAR write FIMP_LINHASPULAR;
- property IMP_MODELO: Extended read FIMP_MODELO write FIMP_MODELO;
- property IMP_PAGCODIGO: Extended read FIMP_PAGCODIGO write FIMP_PAGCODIGO;
- property IMP_PORTA: Extended read FIMP_PORTA write FIMP_PORTA;
- property KEY_UNLOCK: String read FKEY_UNLOCK write FKEY_UNLOCK;
- property NUM_COPIASSAT: String read FNUM_COPIASSAT write FNUM_COPIASSAT;
- property PDV_IP: String read FPDV_IP write FPDV_IP;
- property PDV_MAC: String read FPDV_MAC write FPDV_MAC;
- property PDV_NCAIXA: Extended read FPDV_NCAIXA write FPDV_NCAIXA;
- property PDV_SISOPERACIONAL: String read FPDV_SISOPERACIONAL write FPDV_SISOPERACIONAL;
- property POS_BAIXO: String read FPOS_BAIXO write FPOS_BAIXO;
- property POS_CIMA: String read FPOS_CIMA write FPOS_CIMA;
- property POS_ESPACOFINAL: String read FPOS_ESPACOFINAL write FPOS_ESPACOFINAL;
- property POS_MARGEMDIREITA: String read FPOS_MARGEMDIREITA write FPOS_MARGEMDIREITA;
- property POS_MARGEM_ESQUERDA: String read FPOS_MARGEM_ESQUERDA write FPOS_MARGEM_ESQUERDA;
- property PROMO_ATIVADO: String read FPROMO_ATIVADO write FPROMO_ATIVADO;
- property PROMO_DATAFIM: String read FPROMO_DATAFIM write FPROMO_DATAFIM;
- property PROMO_DATAINI: String read FPROMO_DATAINI write FPROMO_DATAINI;
- property PROMO_MENSAGEM: String read FPROMO_MENSAGEM write FPROMO_MENSAGEM;
- property PROMO_VALOR: String read FPROMO_VALOR write FPROMO_VALOR;
- property SOFTH_ASSINATURASW: Extended read FSOFTH_ASSINATURASW write FSOFTH_ASSINATURASW;
- property SOFTH_CNPJ: Extended read FSOFTH_CNPJ write FSOFTH_CNPJ;
- property SO_IPTERM: String read FSO_IPTERM write FSO_IPTERM;
- property SO_MEMORY: String read FSO_MEMORY write FSO_MEMORY;
- property SO_NAMEWINDOWS: String read FSO_NAMEWINDOWS write FSO_NAMEWINDOWS;
- property TAMANHO_PAPEL: String read FTAMANHO_PAPEL write FTAMANHO_PAPEL;
- property TIPOEXTRATODESC: String read FTIPOEXTRATODESC write FTIPOEXTRATODESC;
- property TIPOEXTRATO_BOLL: String read FTIPOEXTRATO_BOLL write FTIPOEXTRATO_BOLL;
- function ToJsonString: string;
- class function FromJsonString(AJsonString: string): TItemClass;
- end;
- TRootClass = class
- private
- FItems: TArray<TItemClass>;
- public
- property Items: TArray<TItemClass> read FItems write FItems;
- destructor Destroy; override;
- function ToJsonString: string;
- class function FromJsonString(AJsonString: string): TRootClass;
- end;
- implementation
- {TItemClass}
- function TItemClass.ToJsonString: string;
- begin
- result := TJson.ObjectToJsonString(self);
- end;
- class function TItemClass.FromJsonString(AJsonString: string): TItemClass;
- begin
- result := TJson.JsonToObject<TItemClass>(AJsonString)
- end;
- {TRootClass}
- destructor TRootClass.Destroy;
- var
- LItemsItem: TItemClass;
- begin
- for LItemsItem in FItems do
- LItemsItem.free;
- inherited;
- end;
- function TRootClass.ToJsonString: string;
- begin
- result := TJson.ObjectToJsonString(self);
- end;
- class function TRootClass.FromJsonString(AJsonString: string): TRootClass;
- begin
- result := TJson.JsonToObject<TRootClass>(AJsonString)
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement