/* Options: Date: 2026-04-04 04:55:19 SwiftVersion: 6.0 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: GetObjectConnections.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack /** * Get object connections for the specified object and connection method. */ // @Route("/objects/{RmsTableCtxIdConnectionMethod}/connectionsFrom/{FromObjectId}", "GET") // @Route("/objects/{RmsTableCtxIdConnectionMethod}/connectionsTo/{ToObjectId}", "GET") // @Api(Description="Get object connections for the specified object and connection method.") public class GetObjectConnections : IReturn, Codable { public typealias Return = GetObjectConnectionsResponse /** * 'From' object ID in the connection. */ // @ApiMember(DataType="Guid", Description="'From' object ID in the connection.", IsRequired=true, Name="FromObjectId", ParameterType="query") public var fromObjectId:String? /** * 'To' object ID in the connection. */ // @ApiMember(DataType="Guid", Description="'To' object ID in the connection.", IsRequired=true, Name="ToObjectId", ParameterType="query") public var toObjectId:String? /** * Guid representing the Connection Method to use to connect the objects with. */ // @ApiMember(DataType="Guid", Description="Guid representing the Connection Method to use to connect the objects with.", IsRequired=true, Name="RmsTableCtxIdConnectionMethod", ParameterType="query") public var rmsTableCtxIdConnectionMethod:String? /** * Status of object Connections to retrieve, if not specified active connections are retrieved by default. */ // @ApiMember(DataType="string", Description="Status of object Connections to retrieve, if not specified active connections are retrieved by default.", Name="RecordStatus", ParameterType="query") public var recordStatus:String? required public init(){} } // @ApiResponse(Description="Returns the connections for the specified object.") public class GetObjectConnectionsResponse : Codable { public var objectConnections:[ObjectConnectionModel]? public var responseStatus:ResponseStatus? required public init(){} } public class ObjectConnectionModel : Codable { public var objectConnectionId:String? public var objectIdFrom:String? public var objectFromReference:String? public var objectToReference:String? public var objectIdTo:String? public var connectionMethodId:String? public var objectFromName:String? public var objectToName:String? public var recordStatus:String? required public init(){} }