/* Options: Date: 2025-04-04 16:14:12 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.clubmanagercentral.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: FindMessage.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class MessageTemplateInstance implements IConvertible { int? MessageTemplateId; String? Name; String? Subject; String? Body; int? ReportId; int? TemplateType; DateTime? Created; int? CreatedBy; DateTime? Modified; int? ModifiedBy; DateTime? Deleted; int? DeletedBy; int? EventType; int? ContentType; bool? Hidden; int? ParentMessageTemplateId; String? InclusionTags; String? ExclusionTags; MessageTemplateInstance({this.MessageTemplateId,this.Name,this.Subject,this.Body,this.ReportId,this.TemplateType,this.Created,this.CreatedBy,this.Modified,this.ModifiedBy,this.Deleted,this.DeletedBy,this.EventType,this.ContentType,this.Hidden,this.ParentMessageTemplateId,this.InclusionTags,this.ExclusionTags}); MessageTemplateInstance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MessageTemplateId = json['MessageTemplateId']; Name = json['Name']; Subject = json['Subject']; Body = json['Body']; ReportId = json['ReportId']; TemplateType = json['TemplateType']; Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); CreatedBy = json['CreatedBy']; Modified = JsonConverters.fromJson(json['Modified'],'DateTime',context!); ModifiedBy = json['ModifiedBy']; Deleted = JsonConverters.fromJson(json['Deleted'],'DateTime',context!); DeletedBy = json['DeletedBy']; EventType = json['EventType']; ContentType = json['ContentType']; Hidden = json['Hidden']; ParentMessageTemplateId = json['ParentMessageTemplateId']; InclusionTags = json['InclusionTags']; ExclusionTags = json['ExclusionTags']; return this; } Map toJson() => { 'MessageTemplateId': MessageTemplateId, 'Name': Name, 'Subject': Subject, 'Body': Body, 'ReportId': ReportId, 'TemplateType': TemplateType, 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'CreatedBy': CreatedBy, 'Modified': JsonConverters.toJson(Modified,'DateTime',context!), 'ModifiedBy': ModifiedBy, 'Deleted': JsonConverters.toJson(Deleted,'DateTime',context!), 'DeletedBy': DeletedBy, 'EventType': EventType, 'ContentType': ContentType, 'Hidden': Hidden, 'ParentMessageTemplateId': ParentMessageTemplateId, 'InclusionTags': InclusionTags, 'ExclusionTags': ExclusionTags }; getTypeName() => "MessageTemplateInstance"; TypeContext? context = _ctx; } class UserInstance implements IConvertible { int? UserId; String? UserName; String? Name; String? Email; String? MobilePhone; bool? Enabled; DateTime? LastLogin; DateTime? Created; bool? Training; bool? Deleted; int? CoursesCompleted; bool? DisplayHomeNotification; bool? TwoFactorEnabled; bool? EmailConfirmed; bool? MobilePhoneConfirmed; bool? Notifications; DateTime? ChangePassword; DateTime? Activated; UserInstance({this.UserId,this.UserName,this.Name,this.Email,this.MobilePhone,this.Enabled,this.LastLogin,this.Created,this.Training,this.Deleted,this.CoursesCompleted,this.DisplayHomeNotification,this.TwoFactorEnabled,this.EmailConfirmed,this.MobilePhoneConfirmed,this.Notifications,this.ChangePassword,this.Activated}); UserInstance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; UserName = json['UserName']; Name = json['Name']; Email = json['Email']; MobilePhone = json['MobilePhone']; Enabled = json['Enabled']; LastLogin = JsonConverters.fromJson(json['LastLogin'],'DateTime',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); Training = json['Training']; Deleted = json['Deleted']; CoursesCompleted = json['CoursesCompleted']; DisplayHomeNotification = json['DisplayHomeNotification']; TwoFactorEnabled = json['TwoFactorEnabled']; EmailConfirmed = json['EmailConfirmed']; MobilePhoneConfirmed = json['MobilePhoneConfirmed']; Notifications = json['Notifications']; ChangePassword = JsonConverters.fromJson(json['ChangePassword'],'DateTime',context!); Activated = JsonConverters.fromJson(json['Activated'],'DateTime',context!); return this; } Map toJson() => { 'UserId': UserId, 'UserName': UserName, 'Name': Name, 'Email': Email, 'MobilePhone': MobilePhone, 'Enabled': Enabled, 'LastLogin': JsonConverters.toJson(LastLogin,'DateTime',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'Training': Training, 'Deleted': Deleted, 'CoursesCompleted': CoursesCompleted, 'DisplayHomeNotification': DisplayHomeNotification, 'TwoFactorEnabled': TwoFactorEnabled, 'EmailConfirmed': EmailConfirmed, 'MobilePhoneConfirmed': MobilePhoneConfirmed, 'Notifications': Notifications, 'ChangePassword': JsonConverters.toJson(ChangePassword,'DateTime',context!), 'Activated': JsonConverters.toJson(Activated,'DateTime',context!) }; getTypeName() => "UserInstance"; TypeContext? context = _ctx; } class MessageInstance implements IConvertible { int? MessageId; DateTime? DueDate; DateTime? SentDate; bool? Processed; int? Failures; int? InstanceId; String? MessageSid; MessageTemplateInstance? MessageTemplate; // @References(typeof(MessageTemplateInstance)) int? MessageTemplateId; DateTime? OpenedDate; DateTime? BouncedDate; DateTime? DeliveredDate; DateTime? UnsubscribedDate; DateTime? SpamReportDate; UserInstance? User; // @References(typeof(UserInstance)) int? UserId; int? InstanceType; MessageInstance({this.MessageId,this.DueDate,this.SentDate,this.Processed,this.Failures,this.InstanceId,this.MessageSid,this.MessageTemplate,this.MessageTemplateId,this.OpenedDate,this.BouncedDate,this.DeliveredDate,this.UnsubscribedDate,this.SpamReportDate,this.User,this.UserId,this.InstanceType}); MessageInstance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MessageId = json['MessageId']; DueDate = JsonConverters.fromJson(json['DueDate'],'DateTime',context!); SentDate = JsonConverters.fromJson(json['SentDate'],'DateTime',context!); Processed = json['Processed']; Failures = json['Failures']; InstanceId = json['InstanceId']; MessageSid = json['MessageSid']; MessageTemplate = JsonConverters.fromJson(json['MessageTemplate'],'MessageTemplateInstance',context!); MessageTemplateId = json['MessageTemplateId']; OpenedDate = JsonConverters.fromJson(json['OpenedDate'],'DateTime',context!); BouncedDate = JsonConverters.fromJson(json['BouncedDate'],'DateTime',context!); DeliveredDate = JsonConverters.fromJson(json['DeliveredDate'],'DateTime',context!); UnsubscribedDate = JsonConverters.fromJson(json['UnsubscribedDate'],'DateTime',context!); SpamReportDate = JsonConverters.fromJson(json['SpamReportDate'],'DateTime',context!); User = JsonConverters.fromJson(json['User'],'UserInstance',context!); UserId = json['UserId']; InstanceType = json['InstanceType']; return this; } Map toJson() => { 'MessageId': MessageId, 'DueDate': JsonConverters.toJson(DueDate,'DateTime',context!), 'SentDate': JsonConverters.toJson(SentDate,'DateTime',context!), 'Processed': Processed, 'Failures': Failures, 'InstanceId': InstanceId, 'MessageSid': MessageSid, 'MessageTemplate': JsonConverters.toJson(MessageTemplate,'MessageTemplateInstance',context!), 'MessageTemplateId': MessageTemplateId, 'OpenedDate': JsonConverters.toJson(OpenedDate,'DateTime',context!), 'BouncedDate': JsonConverters.toJson(BouncedDate,'DateTime',context!), 'DeliveredDate': JsonConverters.toJson(DeliveredDate,'DateTime',context!), 'UnsubscribedDate': JsonConverters.toJson(UnsubscribedDate,'DateTime',context!), 'SpamReportDate': JsonConverters.toJson(SpamReportDate,'DateTime',context!), 'User': JsonConverters.toJson(User,'UserInstance',context!), 'UserId': UserId, 'InstanceType': InstanceType }; getTypeName() => "MessageInstance"; TypeContext? context = _ctx; } // @Route("/api/Query/Message") // @AutoQueryViewer(Description="", IconUrl="octicon:database", Title="Message") class FindMessage extends QueryDb implements IReturn>, IConvertible { FindMessage(); FindMessage.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "FindMessage"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'MessageTemplateInstance': TypeInfo(TypeOf.Class, create:() => MessageTemplateInstance()), 'UserInstance': TypeInfo(TypeOf.Class, create:() => UserInstance()), 'MessageInstance': TypeInfo(TypeOf.Class, create:() => MessageInstance()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'FindMessage': TypeInfo(TypeOf.Class, create:() => FindMessage()), 'List': TypeInfo(TypeOf.Class, create:() => []), });