Class PostResponseDto
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
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
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
AuthorUserId
User.Id of the GastroSky.Models.DTO.User who created this GastroSky.Models.DTO.Post.
public required long AuthorUserId { get; set; }
Property Value
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
Category
GastroSky.Models.DTO.Post category.
public required PostCategory Category { get; set; }
Property Value
- 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
ContactEmail
GastroSky.Models.DTO.Post contact email address.
public string? ContactEmail { get; set; }
Property Value
ContactName
GastroSky.Models.DTO.Post contact name and last name.
public string? ContactName { get; set; }
Property Value
ContactPhone
GastroSky.Models.DTO.Post contact phone number.
public string? ContactPhone { get; set; }
Property Value
Remarks
This is a premium feature.
ContactWebsiteURL
GastroSky.Models.DTO.Post contact website URL.
public string? ContactWebsiteURL { get; set; }
Property Value
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
CreationTimestampUTC
Unix-timestamp of when this GastroSky.Models.DTO.Post was created.
public required long CreationTimestampUTC { get; set; }
Property Value
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
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
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
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
IsPublishable
public bool IsPublishable { get; set; }
Property Value
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
Location
public LocationResponseDto? Location { get; set; }
Property Value
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
PostPremiumUpgrades
public ICollection<PostPremiumUpgradeResponseDto>? PostPremiumUpgrades { get; set; }
Property Value
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
Subtitle
Translations payload for theGastroSky.Models.DTO.Post's subtitle.
public required TranslatableFieldDto Subtitle { get; set; }
Property Value
Title
Translations payload for theGastroSky.Models.DTO.Post's title.
public required TranslatableFieldDto Title { get; set; }
Property Value
UserInteractions
public ICollection<UserPostInteractionResponseDto>? UserInteractions { get; set; }
Property Value
VideoURL
Link to video related to the object.
public string? VideoURL { get; set; }