/* Options: Date: 2026-04-04 01:04:00 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetObjectReads.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ObjectAccessModel implements IConvertible { /** * Object Access Read Id. */ // @ApiMember(Description="Object Access Read Id.", Name="ObjectReadId") String? ObjectReadId; /** * Object Id viewing the specified Object. */ // @ApiMember(Description="Object Id viewing the specified Object.", IsRequired=true, Name="ViewingObjectId") String? ViewingObjectId; /** * Name of the object viewing the specified Object. */ // @ApiMember(Description="Name of the object viewing the specified Object.", Name="ViewingObjectName") String? ViewingObjectName; /** * Name of the object viewing the specified Object. */ // @ApiMember(Description="Name of the object viewing the specified Object.", Name="ViewingObjectPrimaryImageUrl") String? ViewingObjectPrimaryImageUrl; /** * Id of the object being viewed. */ // @ApiMember(Description="Id of the object being viewed.", IsRequired=true, Name="ViewedObjectId") String? ViewedObjectId; /** * Name of the object being viewed. */ // @ApiMember(Description="Name of the object being viewed.", Name="ViewedObjectName") String? ViewedObjectName; /** * Date and Time of object read */ // @ApiMember(Description="Date and Time of object read", Name="TimeRead") DateTime? TimeRead; /** * Date and Time object started watching the specified object. */ // @ApiMember(Description="Date and Time object started watching the specified object.", Name="TimeStartWatching") DateTime? TimeStartWatching; /** * Date and Time of object being flagged. */ // @ApiMember(Description="Date and Time of object being flagged.", Name="Flagged") DateTime? Flagged; ObjectAccessModel({this.ObjectReadId,this.ViewingObjectId,this.ViewingObjectName,this.ViewingObjectPrimaryImageUrl,this.ViewedObjectId,this.ViewedObjectName,this.TimeRead,this.TimeStartWatching,this.Flagged}); ObjectAccessModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ObjectReadId = json['ObjectReadId']; ViewingObjectId = json['ViewingObjectId']; ViewingObjectName = json['ViewingObjectName']; ViewingObjectPrimaryImageUrl = json['ViewingObjectPrimaryImageUrl']; ViewedObjectId = json['ViewedObjectId']; ViewedObjectName = json['ViewedObjectName']; TimeRead = JsonConverters.fromJson(json['TimeRead'],'DateTime',context!); TimeStartWatching = JsonConverters.fromJson(json['TimeStartWatching'],'DateTime',context!); Flagged = JsonConverters.fromJson(json['Flagged'],'DateTime',context!); return this; } Map toJson() => { 'ObjectReadId': ObjectReadId, 'ViewingObjectId': ViewingObjectId, 'ViewingObjectName': ViewingObjectName, 'ViewingObjectPrimaryImageUrl': ViewingObjectPrimaryImageUrl, 'ViewedObjectId': ViewedObjectId, 'ViewedObjectName': ViewedObjectName, 'TimeRead': JsonConverters.toJson(TimeRead,'DateTime',context!), 'TimeStartWatching': JsonConverters.toJson(TimeStartWatching,'DateTime',context!), 'Flagged': JsonConverters.toJson(Flagged,'DateTime',context!) }; getTypeName() => "ObjectAccessModel"; TypeContext? context = _ctx; } // @ApiResponse(Description="Returns the reads (object access) to the specified object.") class GetObjectReadsResponse implements IConvertible { List? ObjectReads; ResponseStatus? ResponseStatus; GetObjectReadsResponse({this.ObjectReads,this.ResponseStatus}); GetObjectReadsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ObjectReads = JsonConverters.fromJson(json['ObjectReads'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'ObjectReads': JsonConverters.toJson(ObjectReads,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "GetObjectReadsResponse"; TypeContext? context = _ctx; } /** * Get reads (object access) for the specified object. */ // @Route("/object/{ObjectId}/reads", "GET") // @Api(Description="Get reads (object access) for the specified object.") class GetObjectReads implements IReturn, IConvertible, IGet { /** * Object Id to get object access reads for */ // @ApiMember(DataType="Guid", Description="Object Id to get object access reads for", IsRequired=true, Name="ObjectId") String? ObjectId; GetObjectReads({this.ObjectId}); GetObjectReads.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ObjectId = json['ObjectId']; return this; } Map toJson() => { 'ObjectId': ObjectId }; createResponse() => GetObjectReadsResponse(); getResponseTypeName() => "GetObjectReadsResponse"; getTypeName() => "GetObjectReads"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'ObjectAccessModel': TypeInfo(TypeOf.Class, create:() => ObjectAccessModel()), 'GetObjectReadsResponse': TypeInfo(TypeOf.Class, create:() => GetObjectReadsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetObjectReads': TypeInfo(TypeOf.Class, create:() => GetObjectReads()), });