Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62204044
Group.dart
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, May 11, 14:52
Size
1 KB
Mime Type
text/x-c++
Expires
Mon, May 13, 14:52 (2 d)
Engine
blob
Format
Raw Data
Handle
17618611
Attached To
R10646 Orchestration
Group.dart
View Options
import 'package:firebase_database/firebase_database.dart';
import 'package:flutter/rendering.dart';
import 'package:student/model/Cellulo.dart';
Group group = new Group("1", "", "", "");
class Group {
String sessionID = 'test';
String id = "1";
String tabletStatus = 'YES';
// String _title;
// String _description;
int inactivity = 0;
String member1name;
String member2name;
String member3name;
int robot1code = 0;
int robot2code = 0;
bool ispaused = false;
Cellulo cellulox;
Cellulo celluloy;
String currentActivity = '';
String robotName = "Cellulo";
// Time timeJoined;
Group(this.id, this.member1name, this.member2name, this.member3name);
toJson() {
return {
"member1name": member1name,
"member2name": member2name,
"member3name": member3name,
"robotName": robotName,
"robot1code": robot1code,
"robot2code": robot2code,
"currentActivity": currentActivity,
"tabletStatus": tabletStatus,
"isPaused": ispaused,
//"inactivity": inactivity,
"id": id,
//"Ac8": {"progress": 0, "mistaesSlope": 0, "mistaesIntercept": 0},
//"Ac7": {"progress": 0, "mistaesSlope": 0, "mistaesIntercept": 0},
//"cellulox": {"x": 0, "y": 0, "tetha": 0},
//"celluloy": {"x": 0, "y": 0, "tetha": 0}
};
}
Group.fromSnapshot(DataSnapshot snapshot) {
// _id = snapshot.key;
member1name = snapshot.value['member1name'];
member2name = snapshot.value['member2name'];
member3name = snapshot.value['member3name'];
}
}
Event Timeline
Log In to Comment