| GET,OPTIONS | /v1/coverage/self/daynotes |
|---|
import 'package:servicestack/servicestack.dart';
class CoverageSelfDayNote implements IConvertible
{
int? RosterDayNoteID;
String? AuthorName;
String? Body;
String? TimeText;
bool? Mine;
CoverageSelfDayNote({this.RosterDayNoteID,this.AuthorName,this.Body,this.TimeText,this.Mine});
CoverageSelfDayNote.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
RosterDayNoteID = json['RosterDayNoteID'];
AuthorName = json['AuthorName'];
Body = json['Body'];
TimeText = json['TimeText'];
Mine = json['Mine'];
return this;
}
Map<String, dynamic> toJson() => {
'RosterDayNoteID': RosterDayNoteID,
'AuthorName': AuthorName,
'Body': Body,
'TimeText': TimeText,
'Mine': Mine
};
getTypeName() => "CoverageSelfDayNote";
TypeContext? context = _ctx;
}
class CoverageSelfDayNotesResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
String? TodayLabel;
List<CoverageSelfDayNote>? Today = [];
String? PreviousLabel;
List<CoverageSelfDayNote>? Previous = [];
bool? CanWrite;
CoverageSelfDayNotesResponse({this.ResponseStatus,this.TodayLabel,this.Today,this.PreviousLabel,this.Previous,this.CanWrite});
CoverageSelfDayNotesResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
TodayLabel = json['TodayLabel'];
Today = JsonConverters.fromJson(json['Today'],'List<CoverageSelfDayNote>',context!);
PreviousLabel = json['PreviousLabel'];
Previous = JsonConverters.fromJson(json['Previous'],'List<CoverageSelfDayNote>',context!);
CanWrite = json['CanWrite'];
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'TodayLabel': TodayLabel,
'Today': JsonConverters.toJson(Today,'List<CoverageSelfDayNote>',context!),
'PreviousLabel': PreviousLabel,
'Previous': JsonConverters.toJson(Previous,'List<CoverageSelfDayNote>',context!),
'CanWrite': CanWrite
};
getTypeName() => "CoverageSelfDayNotesResponse";
TypeContext? context = _ctx;
}
class CoverageSelfDayNotesRequest implements IConvertible
{
String? Date;
CoverageSelfDayNotesRequest({this.Date});
CoverageSelfDayNotesRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Date = json['Date'];
return this;
}
Map<String, dynamic> toJson() => {
'Date': Date
};
getTypeName() => "CoverageSelfDayNotesRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'CoverageSelfDayNote': TypeInfo(TypeOf.Class, create:() => CoverageSelfDayNote()),
'CoverageSelfDayNotesResponse': TypeInfo(TypeOf.Class, create:() => CoverageSelfDayNotesResponse()),
'List<CoverageSelfDayNote>': TypeInfo(TypeOf.Class, create:() => <CoverageSelfDayNote>[]),
'CoverageSelfDayNotesRequest': TypeInfo(TypeOf.Class, create:() => CoverageSelfDayNotesRequest()),
});
Dart CoverageSelfDayNotesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/coverage/self/daynotes HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"TodayLabel":"String","Today":[{"RosterDayNoteID":0,"AuthorName":"String","Body":"String","TimeText":"String","Mine":false}],"PreviousLabel":"String","Previous":[{"RosterDayNoteID":0,"AuthorName":"String","Body":"String","TimeText":"String","Mine":false}],"CanWrite":false}