/* Options:
Date: 2026-04-04 06:45:18
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: GetRelatedItems.*
//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.Saguna.Common.WebAPIModel.Models;
using Eros.Subtle.Canvara.WebAPIModel.ServiceModel;
namespace Eros.Saguna.Common.WebAPIModel.Models
{
public partial class PagedModel
{
///
///Page Number to retrieve
///
[ApiMember(DataType="int", Description="Page Number to retrieve", Name="PageNumber")]
public virtual int PageNumber { get; set; }
///
///Number of records to retrieve
///
[ApiMember(DataType="int", Description="Number of records to retrieve", Name="PageSize")]
public virtual int PageSize { get; set; }
///
///Index of field to sort results by
///
[ApiMember(DataType="int", Description="Index of field to sort results by", Name="SortIndex")]
public virtual int SortIndex { get; set; }
///
///Sort Order - Ascending or Descending
///
[ApiMember(DataType="int", Description="Sort Order - Ascending or Descending", Name="SortOrder")]
public virtual SortOrder SortOrder { get; set; }
}
public partial class RelatedItemsModel
{
///
///Object linked to the related item.
///
[ApiMember(DataType="Guid", Description="Object linked to the related item.", IsRequired=true, Name="ObjectId")]
public virtual Guid ObjectId { get; set; }
///
///Related item name.
///
[ApiMember(DataType="string", Description="Related item name.", Name="RelatedItemName")]
public virtual string RelatedItemName { get; set; }
///
///Related item type.
///
[ApiMember(DataType="string", Description="Related item type.", Name="RelatedItemType")]
public virtual string RelatedItemType { get; set; }
///
///Date of creation of the related item.
///
[ApiMember(DataType="DateTime", Description="Date of creation of the related item.", IsRequired=true, Name="CreatedAt")]
public virtual DateTime CreatedAt { get; set; }
///
///Contact who created the related item
///
[ApiMember(DataType="string", Description="Contact who created the related item", Name="CreatedByName")]
public virtual string CreatedByName { get; set; }
///
///Contact who created the related item
///
[ApiMember(DataType="Guid", Description="Contact who created the related item", Name="CreatedById")]
public virtual Guid CreatedById { get; set; }
///
///Profile photo of the contact who created the related item
///
[ApiMember(DataType="string", Description="Profile photo of the contact who created the related item", Name="CreatedByThumbnailUrl")]
public virtual string CreatedByThumbnailUrl { get; set; }
///
///Relationship between objects linked to the related item
///
[ApiMember(DataType="string", Description="Relationship between objects linked to the related item", Name="Relationship")]
public virtual string Relationship { get; set; }
///
///Is the related item significant?
///
[ApiMember(DataType="bool", Description="Is the related item significant?", IsRequired=true, Name="IsSignificant")]
public virtual bool IsSignificant { get; set; }
}
public enum SortOrder
{
Ascending,
Descending,
}
}
namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModel
{
///
///Get related items related to the specified object.
///
[Route("/relateditems/{ObjectId}")]
[Api(Description="Get related items related to the specified object.")]
public partial class GetRelatedItems
: PagedModel, IReturn
{
///
///Object to get related items for.
///
[ApiMember(Description="Object to get related items for.", IsRequired=true, Name="ObjectId")]
public virtual Guid ObjectId { get; set; }
///
///Significant Only or All
///
[ApiMember(Description="Significant Only or All", IsRequired=true, Name="RelatedItemsLevel")]
public virtual Guid RelatedItemsLevel { get; set; }
///
///Return all connections or paged results?
///
[ApiMember(Description="Return all connections or paged results?", Name="IsPagedMode")]
public virtual bool IsPagedMode { get; set; }
}
[ApiResponse(Description="Items related to the object.")]
public partial class GetRelatedItemsResponse
{
public virtual List RelatedItems { get; set; }
public virtual int TotalRelatedItems { get; set; }
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; }
}
}