/* Options:
Date: 2024-11-23 09:04:16
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: BookingLogQuery.*
//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 BokaMera.API.ServiceModel.Db;
using BokaMera.API.ServiceModel.Dtos;
namespace BokaMera.API.ServiceModel.Db
{
public partial class BaseModel
{
}
public partial class BookingLog
: BaseModel
{
[References(typeof(BokaMera.API.ServiceModel.Db.BookingLogEventType))]
public virtual int EventTypeId { get; set; }
public virtual BookingLogEventType EventType { get; set; }
[Required]
public virtual Guid CompanyId { get; set; }
[Required]
public virtual int BookingId { get; set; }
public virtual int Id { get; set; }
public virtual string Comments { get; set; }
public virtual string UserId { get; set; }
[Required]
public virtual DateTime Created { get; set; }
public virtual DateTimeOffset? ModifiedDate { get; set; }
}
public partial class BookingLogEventType
: BaseModel
{
[Required]
public virtual string Name { get; set; }
[Required]
public virtual string Description { get; set; }
public virtual DateTimeOffset? ModifiedDate { get; set; }
[Required]
public virtual int Id { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class BookingLogEventTypeResponse
{
///
///The event type id
///
[ApiMember(Description="The event type id")]
public virtual int Id { get; set; }
///
///The event type name
///
[ApiMember(Description="The event type name")]
public virtual string Name { get; set; }
///
///The event type description
///
[ApiMember(Description="The event type description")]
public virtual string Description { get; set; }
}
[Route("/bookinglog", "GET")]
[ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
[ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403)]
[ValidateRequest("IsAuthenticated")]
public partial class BookingLogQuery
: QueryDb, IReturn>
{
///
///Enter the company and booking id you want to see log for, if blank company id and you are an admin, your company id will be used
///
[ApiMember(Description="Enter the company and booking id you want to see log for, if blank company id and you are an admin, your company id will be used", IsRequired=true, ParameterType="query")]
public virtual Guid? CompanyId { get; set; }
///
///Enter the booking id you want to get the log
///
[ApiMember(Description="Enter the booking id you want to get the log", IsRequired=true, ParameterType="query")]
public virtual int BookingId { get; set; }
}
public partial class BookingLogQueryResponse
{
///
///The booking log id
///
[ApiMember(Description="The booking log id")]
public virtual int Id { get; set; }
///
///The booking id
///
[ApiMember(Description="The booking id")]
public virtual int BookingId { get; set; }
///
///The type of event
///
[ApiMember(Description="The type of event")]
public virtual int EventTypeId { get; set; }
///
///The type of event
///
[ApiMember(Description="The type of event")]
public virtual BookingLogEventTypeResponse EventType { get; set; }
///
///Comments that could be added to the event log item
///
[ApiMember(Description="Comments that could be added to the event log item")]
public virtual string Comments { get; set; }
///
///The user created the event
///
[ApiMember(Description="The user created the event")]
public virtual string UserName { get; set; }
///
///Then date when the event occured
///
[ApiMember(Description="Then date when the event occured")]
public virtual DateTime Created { get; set; }
}
}