Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public getEsami() {
- if (this.iunica.libretto)
- return new Promise(resolve => resolve(this.iunica.libretto))
- else {
- return new Promise(resolve => {
- this.storage.get('esse3response').then(res => {
- var esamiRaw = res.carrieraCompleta
- for (var i = 0; i < esamiRaw.length; i++) {
- this.esami.push(new Esame(esamiRaw[i]))
- }
- this.ordinaEsamiPerAnno();
- this.libretto = {};
- this.libretto.esami = this.esami;
- this.libretto.esamiZeroAnno = this.esamiZeroAnno;
- this.libretto.esamiPrimoAnno = this.esamiPrimoAnno;
- this.libretto.esamiSecondoAnno = this.esamiSecondoAnno;
- this.libretto.esamiTerzoAnno = this.esamiTerzoAnno;
- this.libretto.esamiQuartoAnno = this.esamiQuartoAnno;
- this.libretto.esamiQuintoAnno = this.esamiQuintoAnno;
- this.libretto.esamiSestoAnno = this.esamiSestoAnno;
- this.iunica.libretto = this.libretto;
- resolve(this.iunica.libretto);
- });
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement