/* Options:
Date: 2026-04-04 04:53:04
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: SaveDimension.*
//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 DimensionModel
{
///
///Id of the Dimension itself.
///
[ApiMember(DataType="Guid", Description="Id of the Dimension itself.", Name="DimensionId")]
public virtual Guid DimensionId { get; set; }
///
///Dimension name.
///
[ApiMember(DataType="string", Description="Dimension name.", Name="Name")]
public virtual string Name { get; set; }
///
///Dimension description.
///
[ApiMember(DataType="string", Description="Dimension description.", Name="Description")]
public virtual string Description { get; set; }
///
///Dimension shortened name.
///
[ApiMember(DataType="string", Description="Dimension shortened name.", Name="ShortName")]
public virtual string ShortName { get; set; }
///
///True if the values for the dimension should have colours associated with them.
///
[ApiMember(DataType="bool", Description="True if the values for the dimension should have colours associated with them.", Name="HasTrafficLightForValues")]
public virtual bool HasTrafficLightForValues { get; set; }
///
///
///
[ApiMember(DataType="bool", Description="", Name="HasImage")]
public virtual bool HasImage { get; set; }
///
///Owner Id of the dimension.
///
[ApiMember(DataType="Guid", Description="Owner Id of the dimension.", Name="OwnerContactId")]
public virtual Guid OwnerContactId { get; set; }
///
///Record status of the dimension.
///
[ApiMember(DataType="string", Description="Record status of the dimension.", Name="RecordStatus")]
public virtual string RecordStatus { get; set; }
///
///Dimension values for this dimension.
///
[ApiMember(DataType="List", Description="Dimension values for this dimension.", Name="DimensionValues")]
public virtual List DimensionValues { get; set; }
///
///Id that links this dimension to an object.
///
[ApiMember(Description="Id that links this dimension to an object.")]
public virtual Guid ObjectConnectionId { get; set; }
}
public partial class DimensionValueModel
{
///
///Id of the dimension value.
///
[ApiMember(DataType="Guid", Description="Id of the dimension value.", Name="DimensionValueId", ParameterType="body")]
public virtual Guid DimensionValueId { get; set; }
///
///Dimension Id this value is for.
///
[ApiMember(Description="Dimension Id this value is for.", ParameterType="body")]
public virtual Guid DimensionId { get; set; }
///
///Name of the dimension value.
///
[ApiMember(Description="Name of the dimension value.", ParameterType="body")]
public virtual string Name { get; set; }
///
///Description of the dimension value.
///
[ApiMember(Description="Description of the dimension value.", ParameterType="body")]
public virtual string Description { get; set; }
///
///Short Name for the dimension value.
///
[ApiMember(Description="Short Name for the dimension value.", ParameterType="body")]
public virtual string ShortName { get; set; }
///
///Id of the colour associated.
///
[ApiMember(Description="Id of the colour associated.", ParameterType="body")]
public virtual Guid TrafficLightId { get; set; }
///
///Colour associated with the dimension value.
///
[ApiMember(Description="Colour associated with the dimension value.", ParameterType="body")]
public virtual string TrafficLightColour { get; set; }
///
///Id that links this dimension value to an object.
///
[ApiMember(Description="Id that links this dimension value to an object.", ParameterType="body")]
public virtual Guid ObjectConnectionId { get; set; }
///
///Owner Id of the dimension value.
///
[ApiMember(Description="Owner Id of the dimension value.", ParameterType="body")]
public virtual Guid OwnerContactId { get; set; }
///
///Record status of the dimension value.
///
[ApiMember(Description="Record status of the dimension value.", ParameterType="body")]
public virtual string RecordStatus { get; set; }
}
}
namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModel
{
///
///Add or update a dimensions details.
///
[Route("/dimensions", "POST")]
[Route("/dimensions/{DimensionId}", "PUT")]
[Api(Description="Add or update a dimensions details.")]
public partial class SaveDimension
: IReturn
{
///
///Details of the dimension to be added or updated.
///
[ApiMember(DataType="DimensionModel", Description="Details of the dimension to be added or updated.", IsRequired=true, Name="Dimension")]
public virtual DimensionModel Dimension { get; set; }
///
///Id of the dimension.
///
[ApiMember(DataType="Guid", Description="Id of the dimension.", IsRequired=true, Name="DimensionId")]
public virtual Guid DimensionId { get; set; }
}
[ApiResponse(Description="Success of the create/update of the dimension")]
public partial class SaveDimensionResponse
{
///
///Id of the Dimension created.
///
[ApiMember(DataType="Guid", Description="Id of the Dimension created.", Name="DimensionId", ParameterType="query")]
public virtual Guid DimensionId { 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; }
}
}