Mobile Client: create class for pipeline, to be completed

This commit is contained in:
Arthi-chaud
2022-01-22 10:11:16 +01:00
parent 8515d6ef00
commit dc3d5e9ed0
+30 -1
View File
@@ -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});
}