' Options: 'Date: 2024-07-03 13:19:44 'Version: 8.23 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://api.bokamera.se ' '''GlobalNamespace: '''MakePartial: True '''MakeVirtual: True '''MakeDataContractsExtensible: 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 Imports System Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports System.Globalization Imports System.IO 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 Nullable(Of 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 Nullable(Of 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 Nullable(Of 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 Nullable(Of Guid) ''' '''Id of the booking ''' Public Overridable Property BookingId As Nullable(Of 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 Nullable(Of 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 Nullable(Of 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 Nullable(Of 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 Nullable(Of Guid) End Interface End Namespace End Namespace