diff --git a/mobile/lib/src/models/pipeline.dart b/mobile/lib/src/models/pipeline.dart index 3e6802a..65929ee 100644 --- a/mobile/lib/src/models/pipeline.dart +++ b/mobile/lib/src/models/pipeline.dart @@ -1,6 +1,35 @@ +import 'package:flutter/material.dart'; + /// Object representation of a pipeline class Pipeline { + // TODO Is the data type of the id correct? + // Unique identifier + final int id; + /// Name of the pipeline, defined by the user - String name; + final String name; + /// How many times the pipeline was triggered + final int triggerCount; + + /// Last time the pipeline was triggered + final DateTime lastTrigger; + + /// Is the pipeline enabled + final bool enabled; + + // TODO Is the data type of the parameters correct? + // The parameters + final Object parameters; + + // TODO How is the reaction linked, of the triggering service? + + const Pipeline( + {Key? key, + required this.id, + required this.name, + required this.triggerCount, + required this.lastTrigger, + required this.enabled, + required this.parameters}); }