/* Options:
Date: 2024-11-21 12:33:03
Version: 8.23
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://api.bokamera.se
//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: True
//ExportValueTypes: False
IncludeTypes: DashboardMessageQuery.*
//ExcludeTypes:
//AddNamespaces:
//AddDefaultXmlNamespace: http://schemas.servicestack.net/types
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using System.Globalization;
using ServiceStack.Data;
using System.IO;
using BokaMera.API.ServiceModel.Interfaces;
using BokaMera.API.ServiceModel.Db;
using BokaMera.API.ServiceModel.Dtos;
namespace BokaMera.API.ServiceModel.Db
{
public partial class BaseModel
{
}
public partial class DashboardMessage
: BaseModel
{
[References(typeof(BokaMera.API.ServiceModel.Db.DashboardMessageType))]
public virtual int MessageTypeId { get; set; }
public virtual DashboardMessageType MessageType { get; set; }
[Required]
public virtual Guid CompanyId { get; set; }
public virtual int Id { get; set; }
[Required]
public virtual string Title { get; set; }
[Required]
public virtual string Body { get; set; }
[Required]
public virtual bool Important { get; set; }
[Required]
public virtual DateTime VisibleFrom { get; set; }
[Required]
public virtual DateTime VisibleTo { get; set; }
[Required]
public virtual DateTime Created { get; set; }
public virtual int? SupportCaseId { get; set; }
public virtual DateTimeOffset? ModifiedDate { get; set; }
}
public partial class DashboardMessageType
: BaseModel
{
[Required]
public virtual string Name { get; set; }
[Required]
public virtual string Description { get; set; }
[Required]
public virtual string Image { get; set; }
public virtual bool? ApplicationMessage { get; set; }
[Required]
public virtual string Color { get; set; }
[Required]
public virtual string Icon { get; set; }
public virtual DateTimeOffset? ModifiedDate { get; set; }
public virtual int Id { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class DasboardMessageTypeResponse
{
///
///The message type id
///
[ApiMember(Description="The message type id")]
public virtual int Id { get; set; }
///
///The message type name
///
[ApiMember(Description="The message type name")]
public virtual string Name { get; set; }
///
///The message type description
///
[ApiMember(Description="The message type description")]
public virtual string Description { get; set; }
///
///The message type image
///
[ApiMember(Description="The message type image")]
public virtual string ImageUrl { get; set; }
///
///If the message type is a application message
///
[ApiMember(Description="If the message type is a application message")]
public virtual bool? ApplicationMessage { get; set; }
///
///The message type icon
///
[ApiMember(Description="The message type icon")]
public virtual string Icon { get; set; }
///
///The message type color
///
[ApiMember(Description="The message type color")]
public virtual string Color { get; set; }
}
[Route("/messages/dashboard", "GET")]
[ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
[ValidateRequest("IsAuthenticated")]
public partial class DashboardMessageQuery
: QueryDb, IReturn>, ICompany
{
///
///The company id, if empty will use the company id for the user you are logged in with.
///
[ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.", ParameterType="path")]
public virtual Guid? CompanyId { get; set; }
///
///If you want to filter on important messages only
///
[ApiMember(DataType="boolean", Description="If you want to filter on important messages only", ParameterType="query")]
public virtual bool? Important { get; set; }
///
///Filter on Message Type Id
///
[ApiMember(DataType="int", Description="Filter on Message Type Id", ParameterType="query")]
public virtual int? MessageTypeId { get; set; }
///
///If you want to include the message type information
///
[ApiMember(DataType="boolean", Description="If you want to include the message type information", ParameterType="query")]
public virtual bool IncludeMessageTypeInformation { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
public partial class DashboardMessageQueryResponse
{
///
///The message id
///
[ApiMember(Description="The message id")]
public virtual int Id { get; set; }
///
///The message title.
///
[ApiMember(Description="The message title.")]
public virtual string Title { get; set; }
///
///The message body.
///
[ApiMember(Description="The message body.")]
public virtual string Body { get; set; }
///
///If the message is important.
///
[ApiMember(Description="If the message is important.")]
public virtual bool Important { get; set; }
///
///If the message visible from date.
///
[ApiMember(Description="If the message visible from date.")]
public virtual DateTime VisibleFrom { get; set; }
///
///If the message visible to date.
///
[ApiMember(Description="If the message visible to date.")]
public virtual DateTime VisibleTo { get; set; }
///
///If the message created date.
///
[ApiMember(Description="If the message created date.")]
public virtual DateTime Created { get; set; }
///
///If the message type id.
///
[ApiMember(Description="If the message type id.")]
public virtual int MessageTypeId { get; set; }
///
///If the message is connected to a support case.
///
[ApiMember(Description="If the message is connected to a support case.")]
public virtual int? SupportCaseId { get; set; }
///
///If the message type information.
///
[ApiMember(Description="If the message type information.")]
public virtual DasboardMessageTypeResponse MessageType { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}