Skip to content
Snippets Groups Projects

Resolve "Ler/Escrever formulário da base"

Merged Matheus Horstmann requested to merge 7-ler-escrever-formulario-da-base into develop
Files
6
+ 13
10
@@ -20,28 +20,31 @@
*/
import { Input } from "./input";
/**
* Form Class to manage project's forms
*/
export class Form {
/** Form Header, as name and propose */
public readonly header: string;
/** Form's id */
public readonly id: number;
/** Form Title, as name */
public readonly title: string;
/** Form Description, as propose */
public readonly description: string;
/** Array of input. containing question */
public readonly inputs: Input[];
/** Version, a incremental numbert */
public readonly version: number;
/**
* Creates a new instance of Input Class
* @param header - Forms's name and propose.
* @param title - Forms's name.
* @param description - Form's description
* @param inputs - Forms's question
* @param version - Incremental version of Form
*/
constructor(header: string, inputs: Input[], version: number) {
this.header = header;
constructor(title: string, description: string, inputs: Input[], id?: number) {
this.id = (typeof id === "undefined") ? null : id;
this.title = title;
this.description = description;
this.inputs = inputs;
this.version = version;
}
}
Loading