/* Options: Date: 2025-12-06 06:10:57 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: NotificationRecipientRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/v1/NotificationRecipient", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/NotificationRecipient/{NotificationRecipientId}", "GET,POST,PUT,DELETE,OPTIONS") public class NotificationRecipientRequest : IReturn, Codable { public typealias Return = NotificationRecipientResponse public var notificationRecipient:[NotificationRecipientExtended] = [] required public init(){} } public class NotificationRecipientResponse : Codable { public var responseStatus:ResponseStatus? public var notificationRecipient:[NotificationRecipientExtended] = [] required public init(){} } public class NotificationRecipientExtended : NotificationRecipient { public var recipientName:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case recipientName } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) recipientName = try container.decodeIfPresent(String.self, forKey: .recipientName) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if recipientName != nil { try container.encode(recipientName, forKey: .recipientName) } } } public class NotificationRecipient : Codable { public var notificationRecipientId:Int? public var notificationMessageId:Int? public var recipientId:Int? public var folder:String? public var isStarred:Bool? public var isImportant:Bool? public var isRead:Bool? public var isDeleted:Bool? required public init(){} }