export class Parameter {
    name: string;
    type: string;
    value?: string;

    constructor(name: string, type: string, value?: string) {
        this.name = name;
        this.type = type;
        this.value = value;
    }
}

export class Intervals{

    value?: string;
    name : string;
    constructor(name: string, type: string, value?: string) {
        this.name = name;
        this.value = value;
    }

   public static  getIntervals(){
        return [
            {"description": "1 year", "value": "1 year"},
            {"description": "6 months", "value": "6 months"},
            {"description": "3 months", "value": "3 months"},
            {"description": "2 months", "value": "2 months"},
            {"description": "1 month", "value": "1 month"},
            {"description": "2 weeks", "value": "2 weeks"},
            {"description": "1 week", "value": "1 week"},
            {"description": "1 day", "value": "1 day"},
            {"description": "12 hours", "value": "12 hours"},
            {"description": "6 hours", "value": "6 hours"},
            {"description": "1 hour", "value": "1 hour"}        
        ];
    }

}