/* Options:
Date: 2024-11-21 11:42:44
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: ReviewQuery.*
//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 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 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; }
}
[Route("/rating/reviews", "GET")]
[ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
[ValidateRequest("IsAuthenticated")]
public partial class ReviewQuery
: QueryDb, IReturn>, ICompany
{
///
///
///
[ApiMember(Description="")]
public virtual Guid? CompanyId { get; set; }
///
///
///
[ApiMember(Description="")]
public virtual Guid? Id { get; set; }
///
///If you want to collect only active reviews
///
[ApiMember(Description="If you want to collect only active reviews")]
public virtual bool? Active { get; set; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}