mirror of
https://github.com/zoriya/Aeris.git
synced 2026-06-06 20:13:31 +00:00
Mobile Client: create class for pipeline, to be completed
This commit is contained in:
@@ -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});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user