Class UserPostInteraction
A User's Post interaction. Can be created on other people's behalf by Post authors.
Check the wiki for more information on business logic, rules and current schema of the GastroSky Sagl.
[Table("UserPostInteractions")]
[Index("Guid", new string[] { }, IsUnique = true)]
[Index("Slug", new string[] { }, IsUnique = true)]
[Index("Email", new string[] { }, IsUnique = false)]
[Index("NotificationsEnabled", new string[] { }, IsUnique = false)]
[Index("ResolvedOnTimestampUTC", new string[] { }, IsUnique = false)]
public class UserPostInteraction
- Inheritance
-
UserPostInteraction
- Inherited Members
Properties
Address
Address of the interested person.
public string? Address { get; set; }
Property Value
CountryCodeISO
3-letter ISO country code.
[MaxLength(3)]
public string? CountryCodeISO { get; set; }
Property Value
CreationTimestampUTC
Unix-timestamp of when this UserPostInteraction was created.
public long CreationTimestampUTC { get; set; }
Property Value
public required string Email { get; set; }
Property Value
Guid
Guid that allows users to anonymously access this UserPostInteraction. This must absolutely NEVER get into the Post author's hands!
public required Guid Guid { get; set; }
Property Value
Id
Meaningless sequential integer that serves purely as a DB primary key.
[Key]
public long Id { get; set; }
Property Value
Language
Preferred Language.
public Language Language { get; set; }
Property Value
LastModificationTimestampUTC
public long? LastModificationTimestampUTC { get; set; }
Property Value
- long?
Location
Physical address location (e.g. city name).
public string? Location { get; set; }
Property Value
Message
Message related to the underlying Post.
[MaxLength(4096)]
public string? Message { get; set; }
Property Value
Name
Name of the interested person.
public required string Name { get; set; }
Property Value
Notes
Optional notes related to this UserPostInteraction. Only visible to the Post author.
[MaxLength(4096)]
public string? Notes { get; set; }
Property Value
NotificationsEnabled
Should the above defined user receive email notifications about the underlying Post.
public bool NotificationsEnabled { get; set; }
Property Value
Phone
Phone number of the interested person.
public string? Phone { get; set; }
Property Value
Post
Post with which this UserPostInteraction is associated.
[ForeignKey("PostId")]
public Post? Post { get; set; }
Property Value
PostId
Id of the Post with which this UserPostInteraction is associated.
public long PostId { get; set; }
Property Value
ResolvedOnTimestampUTC
Unix-timestamp of when this interaction was marked as resolved by the Post author. null if it's not resolved.
public long? ResolvedOnTimestampUTC { get; set; }
Property Value
- long?
Slug
Slug string that uniquely identifies the UserPostInteraction.
[MaxLength(8)]
public required string Slug { get; set; }
Property Value
Status
The current Status of the UserPostInteraction.
public UserPostInteractionStatus Status { get; set; }
Property Value
- See Also
ZipCode
ZIP-code of the interacting person.
public string? ZipCode { get; set; }