Table of Contents

Class PublicPostReducedResponseDto

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

Reduced, more minimal and bandwidth-friendly response body DTO of a GastroSky.Models.DTO.Post.

public sealed class PublicPostReducedResponseDto
Inheritance
PublicPostReducedResponseDto
Inherited Members

Properties

AuthorUser

public UserResponseDto? AuthorUser { get; set; }

Property Value

UserResponseDto

Category

The post category.

public 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?

CountryCodeISO

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

public string? CountryCodeISO { get; set; }

Property Value

string

CreationTimestampUTC

Unix-timestamp of when this GastroSky.Models.DTO.Post was first inserted into the DB.

public 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

HasGoldenBorder

public bool HasGoldenBorder { get; set; }

Property Value

bool

ItemTypes

The ItemTypes that apply to this GastroSky.Models.DTO.Post.

public ItemType[] ItemTypes { get; set; }

Property Value

ItemType[]

LastModificationTimestampUTC

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

public long? LastModificationTimestampUTC { get; set; }

Property Value

long?

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?

PublicationTimestampUTC

Unix-timestamp of when this GastroSky.Models.DTO.Post was published. null if it has not been published yet.

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

Post.Slug

public 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