Added annotations for course variables
This commit is contained in:
parent
a302feb17d
commit
82e8a9c554
1 changed files with 17 additions and 0 deletions
|
@ -1,13 +1,30 @@
|
||||||
library titama.messages;
|
library titama.messages;
|
||||||
|
|
||||||
|
import 'package:rpc/rpc.dart';
|
||||||
|
|
||||||
class Course {
|
class Course {
|
||||||
|
@ApiProperty(required: true)
|
||||||
String title;
|
String title;
|
||||||
|
|
||||||
|
@ApiProperty(required: true)
|
||||||
String time;
|
String time;
|
||||||
|
|
||||||
|
@ApiProperty(required: true)
|
||||||
String day;
|
String day;
|
||||||
|
|
||||||
|
@ApiProperty(defaultValue: "")
|
||||||
String kind;
|
String kind;
|
||||||
|
|
||||||
|
@ApiProperty(defaultValue: "")
|
||||||
String place;
|
String place;
|
||||||
|
|
||||||
|
@ApiProperty(defaultValue: "")
|
||||||
String prof;
|
String prof;
|
||||||
|
|
||||||
|
@ApiProperty(defaultValue: "")
|
||||||
String turnin;
|
String turnin;
|
||||||
|
|
||||||
|
@ApiProperty()
|
||||||
int id;
|
int id;
|
||||||
|
|
||||||
Course();
|
Course();
|
||||||
|
|
Reference in a new issue