/* Options:
Date: 2026-04-04 06:46:20
Version: 8.52
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://pfapi.pstpf.com.au/api
//GlobalNamespace:
//MakePartial: True
//MakeVirtual: True
//MakeInternal: False
//MakeDataContractsExtensible: False
//AddNullableAnnotations: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//InitializeCollections: False
//ExportValueTypes: False
IncludeTypes: ConnectContactsInRoles.*
//ExcludeTypes:
//AddNamespaces:
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Eros.Subtle.Canvara.WebAPIModel.ServiceModel;
namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModel
{
///
///Connect two contacts in the specified roles
///
[Route("/connections/{ContactId}/to/{ToContactId}")]
[Api(Description="Connect two contacts in the specified roles")]
public partial class ConnectContactsInRoles
: IReturn
{
///
///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 virtual Guid ContactId { get; set; }
///
///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 virtual Guid ToContactId { get; set; }
///
///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 virtual Guid ContactTypeId { get; set; }
///
///List of roles to connect contacts in
///
[ApiMember(DataType="List", Description="List of roles to connect contacts in", IsRequired=true, Name="Roles")]
public virtual List Roles { get; set; } = [];
///
///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 virtual bool SendConnectionEmails { get; set; }
}
[ApiResponse(Description="List of roles available for connection from the specified contact for specified contact types")]
public partial class ConnectContactsInRolesResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
}
}
namespace ServiceStack
{
[DataContract]
public partial class ResponseStatus
: IMeta
{
[DataMember(Order=1)]
public virtual string ErrorCode { get; set; }
[DataMember(Order=2)]
public virtual string Message { get; set; }
[DataMember(Order=3)]
public virtual string StackTrace { get; set; }
[DataMember(Order=4)]
public virtual List Errors { get; set; }
[DataMember(Order=5)]
public virtual Dictionary Meta { get; set; }
}
}