Table of Contents

Class PostResponseDto

Namespace
GastroSky.Models.DTO.Post
Assembly
GastroSky.Models.dll

Response body of a GastroSky.Models.DTO.Post.

public sealed class PostResponseDto
Inheritance
PostResponseDto
Inherited Members

Properties

Address

Physical address.

public string? Address { get; set; }

Property Value

string

AnnualRevenueBracket

Bracket in which the annual revenue of the business falls.

  • < 100'000
  • 100'000-200'000
  • 200'000-500'000
  • 500'000-750'000
  • 750'000-1'000'000
  • 1'000'000-2'000'000
  • > 2'000'000
public PostAnnualRevenueBracket? AnnualRevenueBracket { get; set; }

Property Value

PostAnnualRevenueBracket?

ArchivalTimestampUTC

If this is not null, the post is archived. This wins against PublicationTimestampUTC.

public long? ArchivalTimestampUTC { get; set; }

Property Value

long?

AuthorCompany

User.Id of the GastroSky.Models.DTO.User who created this GastroSky.Models.DTO.Post.

public CompanyReducedResponseDto? AuthorCompany { get; set; }

Property Value

CompanyReducedResponseDto

AuthorUserId

User.Id of the GastroSky.Models.DTO.User who created this GastroSky.Models.DTO.Post.

public required long AuthorUserId { get; set; }

Property Value

long

AvailableFromUTC

The date from when the GastroSky.Models.DTO.Post'ed object is available

public long? AvailableFromUTC { get; set; }

Property Value

long?

BusinessCreationDateUTC

The date of when the GastroSky.Models.DTO.Post'ed business was created

public long? BusinessCreationDateUTC { get; set; }

Property Value

long?

BusinessLegalForm

The legal form of the GastroSky.Models.DTO.Post'ed business

public BusinessLegalForm? BusinessLegalForm { get; set; }

Property Value

BusinessLegalForm?

Category

public required PostCategory Category { get; set; }

Property Value

PostCategory
See Also

ChosenIllustration

Illustration chosen from a preset of images

public int? ChosenIllustration { get; set; }

Property Value

int?

ConstructionYear

The year of the GastroSky.Models.DTO.Post'ed object's construction.

public short? ConstructionYear { get; set; }

Property Value

short?

ContactEmail

GastroSky.Models.DTO.Post contact email address.

public string? ContactEmail { get; set; }

Property Value

string

ContactName

GastroSky.Models.DTO.Post contact name and last name.

public string? ContactName { get; set; }

Property Value

string

ContactPhone

GastroSky.Models.DTO.Post contact phone number.

public string? ContactPhone { get; set; }

Property Value

string

Remarks

This is a premium feature.

ContactWebsiteURL

GastroSky.Models.DTO.Post contact website URL.

public string? ContactWebsiteURL { get; set; }

Property Value

string

Remarks

This is a premium feature.

CountryCodeISO

ISO code of where the GastroSky.Models.DTO.Post's object is located.

[StringLength(3)]
public string? CountryCodeISO { get; set; }

Property Value

string

CreationTimestampUTC

Unix-timestamp of when this GastroSky.Models.DTO.Post was created.

public required long CreationTimestampUTC { get; set; }

Property Value

long

Currency

ISO 4217 string of the currency this GastroSky.Models.DTO.Post is published under. E.g. CHF

public string Currency { get; set; }

Property Value

string

DeletionTimestampUTC

If this is not null, the post was deleted. This wins against both ArchivalTimestampUTC and PublicationTimestampUTC.

public long? DeletionTimestampUTC { get; set; }

Property Value

long?

DescriptionMarkdown

Translations payload for the GastroSky.Models.DTO.Post's description markdown.

public required TranslatableFieldDto DescriptionMarkdown { get; set; }

Property Value

TranslatableFieldDto

ExternalSeatCount

External seat count (if applicable, e.g. for restaurants and bars with tables and chairs).

public int? ExternalSeatCount { get; set; }

Property Value

int?

ExternalSurfaceSquareMeters

External surface area in square meters.

public int? ExternalSurfaceSquareMeters { get; set; }

Property Value

int?

HasGarden

Whether the GastroSky.Models.DTO.Post'ed object has a garden or not

public bool? HasGarden { get; set; }

Property Value

bool?

HideContactData

Whether the GastroSky.Models.DTO.Post's contact fields should be hidden or not

public bool? HideContactData { get; set; }

Property Value

bool?

Id

Uniquely identifying Id.

public required long Id { get; set; }

Property Value

long

InternalSeatCount

Internal seat count (if applicable, e.g. for restaurants and bars with tables and chairs).

public int? InternalSeatCount { get; set; }

Property Value

int?

InternalSurfaceSquareMeters

Internal surface area in square meters.

public int? InternalSurfaceSquareMeters { get; set; }

Property Value

int?

IsPremium

public bool IsPremium { get; set; }

Property Value

bool

IsPublishable

public bool IsPublishable { get; set; }

Property Value

bool

ItemTypes

ItemType associated with this GastroSky.Models.DTO.Post.

public required ItemType[] ItemTypes { get; set; }

Property Value

ItemType[]

LastModificationTimestampUTC

Unix-timestamp of when the GastroSky.Models.DTO.Post was last modified.

public long? LastModificationTimestampUTC { get; set; }

Property Value

long?

LastRenovationYear

The year of the GastroSky.Models.DTO.Post'ed object's last renovation.

public short? LastRenovationYear { get; set; }

Property Value

short?

Location

public LocationResponseDto? Location { get; set; }

Property Value

LocationResponseDto

MainPostImageGuid

public Guid? MainPostImageGuid { get; set; }

Property Value

Guid?

MonthlyRentPriceSubunit

Sub-unit of the monthly rent price. E.g. 1 CHF would be 100 sub-units. This is to remove the floating point and maintain precision and performance. It is even required to be this way by many payment gateway APIs such as Stripe.

public long? MonthlyRentPriceSubunit { get; set; }

Property Value

long?

NumberOfBedrooms

How many bedrooms are in the GastroSky.Models.DTO.Post'ed object

public int? NumberOfBedrooms { get; set; }

Property Value

int?

NumberOfBeds

How many beds are in the GastroSky.Models.DTO.Post'ed object

public int? NumberOfBeds { get; set; }

Property Value

int?

NumberOfEmployees

How many employees are working in the GastroSky.Models.DTO.Post'ed object ex. 1 employee at 100% and 2 employees at 50% = 2 employees

public int? NumberOfEmployees { get; set; }

Property Value

int?

NumberOfFloors

How many floors are in the GastroSky.Models.DTO.Post'ed object

public int? NumberOfFloors { get; set; }

Property Value

int?

NumberOfParkingLots

How many parking lots are available for the GastroSky.Models.DTO.Post'ed object

public int? NumberOfParkingLots { get; set; }

Property Value

int?

NumberOfRooms

How many rooms are in the GastroSky.Models.DTO.Post'ed object

public int? NumberOfRooms { get; set; }

Property Value

int?

NumberOfTerraces

How many terraces are available for the GastroSky.Models.DTO.Post'ed object

public int? NumberOfTerraces { get; set; }

Property Value

int?

PostImages

public ICollection<PostImageResponseDto>? PostImages { get; set; }

Property Value

ICollection<PostImageResponseDto>

PostPremiumUpgrades

public ICollection<PostPremiumUpgradeResponseDto>? PostPremiumUpgrades { get; set; }

Property Value

ICollection<PostPremiumUpgradeResponseDto>

PublicationTimestampUTC

If this is null the post is a draft.

public long? PublicationTimestampUTC { get; set; }

Property Value

long?

SalePriceSubunit

Sub-unit of the sale price. E.g. 1 CHF would be 100 sub-units. This is to remove the floating point and maintain precision and performance. It is even required to be this way by many payment gateway APIs such as Stripe.

public long? SalePriceSubunit { get; set; }

Property Value

long?

Slug

Uniquely identifying slug string. Can be custom-defined for premium posts.

public required string Slug { get; set; }

Property Value

string

Subtitle

Translations payload for theGastroSky.Models.DTO.Post's subtitle.

public required TranslatableFieldDto Subtitle { get; set; }

Property Value

TranslatableFieldDto

Title

Translations payload for theGastroSky.Models.DTO.Post's title.

public required TranslatableFieldDto Title { get; set; }

Property Value

TranslatableFieldDto

UserInteractions

public ICollection<UserPostInteractionResponseDto>? UserInteractions { get; set; }

Property Value

ICollection<UserPostInteractionResponseDto>

VideoURL

Link to video related to the object.

public string? VideoURL { get; set; }

Property Value

string