/* Options:
Date: 2026-04-04 08:37:09
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: GetContactRoleGroups.*
//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 RoleGroupModel
{
///
///Role Group Id
///
[ApiMember(DataType="Guid", Description="Role Group Id", Name="RoleGroupId")]
public virtual Guid RoleGroupId { get; set; }
///
///Role Group Name
///
[ApiMember(DataType="string", Description="Role Group Name", Name="Name")]
public virtual string Name { get; set; }
///
///Owner Contact Id
///
[ApiMember(DataType="Guid", Description="Owner Contact Id", Name="OwnerContactId")]
public virtual Guid OwnerContactId { get; set; }
///
///Number of Roles
///
[ApiMember(DataType="int", Description="Number of Roles", Name="NumberOfRoles")]
public virtual int NumberOfRoles { get; set; }
///
///Roles belonging to the Role Group
///
[ApiMember(DataType="List", Description="Roles belonging to the Role Group", Name="Roles")]
public virtual List Roles { get; set; }
///
///'A' (Active), 'I' (Inactive)
///
[ApiMember(DataType="string", Description="'A' (Active), 'I' (Inactive)", Name="RecordStatus")]
public virtual string RecordStatus { get; set; }
///
///True if Licensee-owned, allowing editing, deleting, archiving
///
[ApiMember(DataType="bool", Description="True if Licensee-owned, allowing editing, deleting, archiving", Name="AllowEdit", ParameterType="query")]
public virtual bool AllowEdit { get; set; }
}
public partial class RoleGroupRolesModel
{
///
///Role Id
///
[ApiMember(DataType="Guid", Description="Role Id", Name="RoleId")]
public virtual Guid RoleId { get; set; }
///
///Role Name
///
[ApiMember(DataType="string", Description="Role Name", Name="RoleName")]
public virtual string RoleName { get; set; }
///
///Role Group Id
///
[ApiMember(DataType="Guid", Description="Role Group Id", Name="RoleGroupId")]
public virtual Guid RoleGroupId { get; set; }
///
///Role Group Name
///
[ApiMember(DataType="string", Description="Role Group Name", Name="RoleGroupName")]
public virtual string RoleGroupName { get; set; }
///
///Role Group Role Id
///
[ApiMember(DataType="Guid", Description="Role Group Role Id", Name="RoleGroupRoleId")]
public virtual Guid RoleGroupRoleId { get; set; }
///
///'A' (Active), 'I' (Inactive)
///
[ApiMember(DataType="string", Description="'A' (Active), 'I' (Inactive)", Name="RecordStatus")]
public virtual string RecordStatus { get; set; }
///
///Owner Contact Id
///
[ApiMember(DataType="Guid", Description="Owner Contact Id", Name="OwnerContactId")]
public virtual Guid OwnerContactId { get; set; }
}
public enum SortOrder
{
Ascending,
Descending,
}
}
namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModel
{
///
///Get role groups for the given criteria
///
[Route("/contactrolegroups/{LicenseeId}")]
[Api(Description="Get role groups for the given criteria")]
public partial class GetContactRoleGroups
: PagedModel, IReturn
{
///
///Get contact role groups for the specified licensee
///
[ApiMember(DataType="Guid", Description="Get contact role groups for the specified licensee", IsRequired=true, Name="LicenseeId", ParameterType="query")]
public virtual Guid LicenseeId { get; set; }
///
///Role Group Name
///
[ApiMember(DataType="string", Description="Role Group Name", Name="Name", ParameterType="query")]
public virtual string Name { get; set; }
///
///Active/Archived filter
///
[ApiMember(DataType="string", Description="Active/Archived filter", Name="RecordStatus", ParameterType="query")]
public virtual string RecordStatus { get; set; }
}
[ApiResponse(Description="List of role groups")]
public partial class GetContactRoleGroupsResponse
{
public virtual List RoleGroups { get; set; }
public virtual int TotalRoleGroups { 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; }
}
}