Commit c08a0d72 authored by Grand Francois's avatar Grand Francois
Browse files

#46 classe Result : ajout des getters hasGlobalLog hasLog

Showing with 14 additions and 0 deletions
+14 -0
...@@ -36,6 +36,20 @@ export class Result { ...@@ -36,6 +36,20 @@ export class Result {
return this._globalLog; return this._globalLog;
} }
/**
* @return true si il y a au moins un message dans le log global
*/
public get hasGlobalLog(): boolean {
return this.globalLog.messages.length > 0;
}
/**
* @return true si il y a au moins un message dans le log global ou dans les ResultElement
*/
public get hasLog(): boolean {
return (this.nbResultElements > 0 && this.log.messages.length > 0) || this.hasGlobalLog;
}
/** /**
* Retourne le résultat du premier ResultElement * Retourne le résultat du premier ResultElement
*/ */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment