/* Options: Date: 2026-04-04 03:15:28 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: ConnectContactsInRoles.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack /** * Connect two contacts in the specified roles */ // @Route("/connections/{ContactId}/to/{ToContactId}") // @Api(Description="Connect two contacts in the specified roles") public class ConnectContactsInRoles : IReturn, Codable { public typealias Return = ConnectContactsInRolesResponse /** * Create a connection from this contact to the specified to contact in the specified roles. */ // @ApiMember(DataType="Guid", Description="Create a connection from this contact to the specified to contact in the specified roles.", IsRequired=true, Name="ContactId") public var contactId:String? /** * Create a connection to this contact from the specified to contact in the specified roles. */ // @ApiMember(DataType="Guid", Description="Create a connection to this contact from the specified to contact in the specified roles.", IsRequired=true, Name="ToContactId") public var toContactId:String? /** * Type of contact being connected with. For e.g. Real Person, Virtual Person etc. */ // @ApiMember(DataType="Guid", Description="Type of contact being connected with. For e.g. Real Person, Virtual Person etc.", IsRequired=true, Name="ContactTypeId") public var contactTypeId:String? /** * List of roles to connect contacts in */ // @ApiMember(DataType="List", Description="List of roles to connect contacts in", IsRequired=true, Name="Roles") public var roles:[String] = [] /** * Send connection emails for auto - accept roles that are being assigned? Note: emails will always be sent if the role requires user acceptance */ // @ApiMember(DataType="boolean", Description="Send connection emails for auto - accept roles that are being assigned? Note: emails will always be sent if the role requires user acceptance", IsRequired=true, Name="SendConnectionEmails") public var sendConnectionEmails:Bool? required public init(){} } // @ApiResponse(Description="List of roles available for connection from the specified contact for specified contact types") public class ConnectContactsInRolesResponse : Codable { public var responseStatus:ResponseStatus? required public init(){} }