Table of Contents

Class TranslationRequest

Namespace
GastroSky.Models
Assembly
GastroSky.Models.dll

A translation request for post description

[Table("TranslationRequests")]
[Index("Slug", new string[] { }, IsUnique = true)]
[Index("Guid", new string[] { }, IsUnique = true)]
[Index("TimestampUTC", new string[] { }, IsUnique = false)]
[Index("FulfillmentUTC", new string[] { }, IsUnique = false)]
public class TranslationRequest
Inheritance
TranslationRequest
Inherited Members

Properties

From

public required Language From { get; set; }

Property Value

Language

FulfillmentUTC

If and when this TranslationRequest was fulfilled by the translators.

public long? FulfillmentUTC { get; set; }

Property Value

long?

Guid

Globally-unique identifier associated with this TranslationRequest . Can be used for anonymous access (therefore needs to be kept secret and only be returned in response DTOs meant for Gastrosky admin accounts or in the email that goes out to the translator).

public required Guid Guid { get; set; }

Property Value

Guid

Id

Sequential integer primary key.

[Key]
public long Id { get; set; }

Property Value

long

Post

Post with which this TranslationRequest is associated.

[ForeignKey("PostId")]
public Post Post { get; set; }

Property Value

Post

PostId

ID of the post with which this TranslationRequest is associated.

public long PostId { get; set; }

Property Value

long

SentTo

public required string SentTo { get; set; }

Property Value

string

Slug

String between 4 and 8 characters that uniquely identifies this TranslationRequest.

[MaxLength(8)]
public required string Slug { get; set; }

Property Value

string

TimestampUTC

Exact timestamp (in UTC) of the translation request.

public long TimestampUTC { get; set; }

Property Value

long

To

public required Language To { get; set; }

Property Value

Language

XliffFile

XLIFF file bytes.

[NotMapped]
public byte[]? XliffFile { get; set; }

Property Value

byte[]

XliffFileGuid

Remote file access token of the XLIFF file.

public Guid? XliffFileGuid { get; set; }

Property Value

Guid?