' Options: 'Date: 2025-09-14 09:33:47 'Version: 8.80 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://api.bookmore.com ' '''GlobalNamespace: '''MakePartial: True '''MakeVirtual: True '''MakeDataContractsExtensible: False '''AddReturnMarker: True '''AddDescriptionAsComments: True '''AddDataContractAttributes: False '''AddIndexesToDataMembers: False '''AddGeneratedCodeAttributes: False '''AddResponseStatus: False '''AddImplicitVersion: '''InitializeCollections: False '''ExportValueTypes: False 'IncludeTypes: RatingQuery.* '''ExcludeTypes: '''AddNamespaces: '''AddDefaultXmlNamespace: http://schemas.servicestack.net/types Imports System Imports System.IO Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports System.Globalization Imports ServiceStack.Data Imports System.Net Imports System.Net.Http.Headers Imports BokaMera.API.ServiceModel.Interfaces Imports BokaMera.API.ServiceModel.Db Imports BokaMera.API.ServiceModel.Dtos Namespace Global Namespace BokaMera.API.ServiceModel.Db Public Partial Class BaseModel End Class Public Partial Class Rating Inherits BaseModel Public Overridable Property ReviewId As Guid? Public Overridable Property Review As Review Public Overridable Property CompanyId As Guid Public Overridable Property BookingId As Integer Public Overridable Property RatingScore As Integer Public Overridable Property Status As Integer Public Overridable Property Created As Date Public Overridable Property Updated As Date Public Overridable Property ModifiedDate As DateTimeOffset? End Class Public Partial Class Review Inherits BaseModel Public Overridable Property ReviewId As Guid Public Overridable Property CompanyId As Guid Public Overridable Property Title As String Public Overridable Property Description As String Public Overridable Property Author As String Public Overridable Property Status As Integer Public Overridable Property Created As Date Public Overridable Property Updated As Date Public Overridable Property ModifiedDate As DateTimeOffset? Public Overridable Property ReviewAnswer As String End Class End Namespace Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class CompanyRatingResponse ''' ''' ''' Public Overridable Property CompanyId As Guid ''' '''Id of the booking ''' Public Overridable Property BookingId As Integer ''' '''The status of the rating, 1 = Active ''' Public Overridable Property Status As Integer ''' '''The rating score ''' Public Overridable Property RatingScore As Integer ''' '''The review if any exists to the rating ''' Public Overridable Property Review As RatingReviewResponse Public Overridable Property CreatedDate As Date Public Overridable Property UpdatedDate As Date End Class Public Partial Class RatingQuery Inherits QueryDb(Of Rating, CompanyRatingResponse) Implements IReturn(Of QueryResponse(Of CompanyRatingResponse)) Implements ICompany ''' ''' ''' Public Overridable Property CompanyId As Guid? Implements ICompany.CompanyId ''' '''Id of the booking ''' Public Overridable Property BookingId As Integer? ''' '''If you want to collect only active ratings. Ratings are only active after one has past since creation date. ''' Public Overridable Property Active As Boolean? ''' '''If you want to include the rating reviews ''' Public Overridable Property IncludeRatingReviews As Boolean ''' '''Start of interval to query for bookings when they where created. UTC+0 and parameter as defined by date-time - RFC3339 ''' Public Overridable Property CreatedFrom As Date? ''' '''End of interval to query for bookings when they where created. UTC+0 and parameter as defined by date-time - RFC3339 ''' Public Overridable Property CreatedTo As Date? End Class Public Partial Class RatingReviewResponse ''' '''The title for the review ''' Public Overridable Property Title As String ''' '''The description for the review ''' Public Overridable Property Description As String ''' '''The rating score ''' Public Overridable Property RatingScore As Integer ''' '''The review author ''' Public Overridable Property Author As String ''' '''The created date ''' Public Overridable Property Created As Date ''' '''The review answer from the company ''' Public Overridable Property ReviewAnswer As String End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Guid? End Interface End Namespace End Namespace