/* Options:
Date: 2024-12-03 18:03:18
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: RatingQuery.*
//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.Interfaces;
using BokaMera.API.ServiceModel.Db;
using BokaMera.API.ServiceModel.Dtos;
namespace BokaMera.API.ServiceModel.Db
{
public partial class BaseModel
{
}
public partial class Rating
: BaseModel
{
public virtual Guid? ReviewId { get; set; }
public virtual Review Review { get; set; }
[Required]
public virtual Guid CompanyId { get; set; }
[Required]
public virtual int BookingId { get; set; }
[Required]
public virtual int RatingScore { get; set; }
[Required]
public virtual int Status { get; set; }
[Required]
public virtual DateTime Created { get; set; }
[Required]
public virtual DateTime Updated { get; set; }
public virtual DateTimeOffset? ModifiedDate { get; set; }
}
public partial class Review
: BaseModel
{
public virtual Guid ReviewId { get; set; }
[Required]
public virtual Guid CompanyId { get; set; }
[Required]
public virtual string Title { get; set; }
[Required]
public virtual string Description { get; set; }
[Required]
public virtual string Author { get; set; }
[Required]
public virtual int Status { get; set; }
[Required]
public virtual DateTime Created { get; set; }
[Required]
public virtual DateTime Updated { get; set; }
public virtual DateTimeOffset? ModifiedDate { get; set; }
public virtual string ReviewAnswer { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Dtos
{
public partial class CompanyRatingResponse
{
///
///
///
[ApiMember(Description="")]
public virtual Guid CompanyId { get; set; }
///
///Id of the booking
///
[ApiMember(Description="Id of the booking")]
public virtual int BookingId { get; set; }
///
///The status of the rating, 1 = Active
///
[ApiMember(Description="The status of the rating, 1 = Active")]
public virtual int Status { get; set; }
///
///The rating score
///
[ApiMember(Description="The rating score")]
public virtual int RatingScore { get; set; }
///
///The review if any exists to the rating
///
[ApiMember(Description="The review if any exists to the rating")]
public virtual RatingReviewResponse Review { get; set; }
public virtual DateTime CreatedDate { get; set; }
public virtual DateTime UpdatedDate { get; set; }
}
[Route("/rating/", "GET")]
[ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
public partial class RatingQuery
: QueryDb, IReturn>, ICompany
{
///
///
///
[ApiMember(Description="")]
public virtual Guid? CompanyId { get; set; }
///
///Id of the booking
///
[DataMember(Name="BookedEventId")]
[ApiMember(Description="Id of the booking")]
public virtual int? BookingId { get; set; }
///
///If you want to collect only active ratings. Ratings are only active after one has past since creation date.
///
[ApiMember(Description="If you want to collect only active ratings. Ratings are only active after one has past since creation date.")]
public virtual bool? Active { get; set; }
///
///If you want to include the rating reviews
///
[ApiMember(DataType="boolean", Description="If you want to include the rating reviews", ParameterType="query")]
public virtual bool IncludeRatingReviews { get; set; }
///
///Start of interval to query for bookings when they where created. UTC+0 and parameter as defined by date-time - RFC3339
///
[ApiMember(DataType="dateTime", Description="Start of interval to query for bookings when they where created. UTC+0 and parameter as defined by date-time - RFC3339", ParameterType="query")]
public virtual DateTime? CreatedFrom { get; set; }
///
///End of interval to query for bookings when they where created. UTC+0 and parameter as defined by date-time - RFC3339
///
[ApiMember(DataType="dateTime", Description="End of interval to query for bookings when they where created. UTC+0 and parameter as defined by date-time - RFC3339", ParameterType="query")]
public virtual DateTime? CreatedTo { get; set; }
}
public partial class RatingReviewResponse
{
///
///The title for the review
///
[ApiMember(Description="The title for the review")]
public virtual string Title { get; set; }
///
///The description for the review
///
[ApiMember(Description="The description for the review")]
public virtual string Description { get; set; }
///
///The rating score
///
[ApiMember(Description="The rating score")]
public virtual int RatingScore { get; set; }
///
///The review author
///
[ApiMember(Description="The review author")]
public virtual string Author { get; set; }
///
///The created date
///
[ApiMember(Description="The created date")]
public virtual DateTime Created { get; set; }
///
///The review answer from the company
///
[ApiMember(Description="The review answer from the company")]
public virtual string ReviewAnswer { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}