Invite Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

An object representing a user invite/sign-up.

public class Invite
Inheritance:
System.Object → Invite

Constructors

Invite() Initializes a new instance of the Invite class.

Properties

ApprovedAt Gets or sets the time (UTC) that the invite was approved.
ApprovedBy Gets the User that approved the invite.
ApprovedById Gets or sets the id of the User that approved the invite.
Code Gets or sets a confirmation code used to verify email etc.
CreatedAt Gets or sets the time (UTC) the Invite item was sent.
CreatedBy Gets the User that sent the invite.
CreatedById Gets or sets the id of the User that sent the invite.
Email Gets or sets the email address used in the invite.
ExpiresAt Gets the time when the invite token expires.
Id Gets the id.
IsExternal Gets a value indicating if the invited user will be created as external.
IsInternal Gets a value indicating if the invited user will be created as internal.
IsInvite Gets a value indicating if this is an invite.
IsSignup Gets a value indicating if this is a sign-up.
IsValid Gets a value indicating if this invite is still valid, i.e. has not expired.
Space Gets the Space referenced by the external invite.
SpaceId Gets or sets the Space id if the invite is external.
Status Gets the invite status.
Token Gets or sets a token that can be used to find the invite.
VerifiedAt Gets or sets the time (UTC) when the email address was verified.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.