From 82e8a9c5544e70d07a166d1fceedc07089262123 Mon Sep 17 00:00:00 2001 From: "Marcel Kapfer (mmk2410)" Date: Sat, 18 Jun 2016 23:37:42 +0200 Subject: [PATCH] Added annotations for course variables --- lib/common/messages.dart | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/common/messages.dart b/lib/common/messages.dart index 878dbcd..6f4a914 100644 --- a/lib/common/messages.dart +++ b/lib/common/messages.dart @@ -1,13 +1,30 @@ library titama.messages; +import 'package:rpc/rpc.dart'; + class Course { + @ApiProperty(required: true) String title; + + @ApiProperty(required: true) String time; + + @ApiProperty(required: true) String day; + + @ApiProperty(defaultValue: "") String kind; + + @ApiProperty(defaultValue: "") String place; + + @ApiProperty(defaultValue: "") String prof; + + @ApiProperty(defaultValue: "") String turnin; + + @ApiProperty() int id; Course();