Space Class

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

An object representing a workspace.

[Boost(1.2F)]
public class Space : Expando, IExpando, IDynamicMetaObjectProvider, IEnumerable<KeyValuePair<string, object>>, IEnumerable, ITrashable, IHasAvatar, IStarrable, IFollowable, IEntity, ICloneable, IArchiveable, ITaggable, IValidatableObject
Inheritance:
System.Object → ExpandoSpace
Attributes:
BoostAttribute
Implements:
IExpando, ITrashable, IHasAvatar, IStarrable, IFollowable, IEntity, IArchiveable, ITaggable

Constructors

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

Properties

Approval Gets or sets a value indicating whether new members need approval or if anyone can join the space.
ArchivedAt Gets the time (UTC) the Space was archived.
ArchivedById Gets the id of the User that archived the Space.
Avatar Gets or sets the avatar image.
Color Gets or sets the theme color.
CreatedAt Gets or sets the time the Space was created.
CreatedById Gets or sets the id of the User that created the Space.
Description Gets or sets the description text.
FollowedByIds Gets the ids of the Users that follow the space.
Id Gets the id of the space.
IsHQ Gets a value indicating whether this is the Company HQ.
IsMember Gets a value indicating whether the current user is a member of the space.
MemberIds Gets the ids of the Users that are members of the space.
ModifiedAt Gets or sets the time (UTC) the item was last updated.
ModifiedById Gets or sets the Id of the User that last updated the Space item.
Name Gets or sets the display name.
Privacy Gets or sets a value indicating the privacy settings of the Space.
StarredByIds Gets the ids of the users that have starred the item.
Tags Gets or sets the list of tags for the space.
Teamname Gets or sets the team name (used for @mentions).
Timestamp Gets the timestamp.
TrashedAt Gets the time (UTC) the Space item was trashed.
TrashedById Gets the id of the User that trashed the Space.
Type Gets the type of the entity.

Methods

Clone() Creates a new object that is a copy of the current instance.
GetExcerpt(bool) Gets an excerpt or summary suitable for display in lists and search results.
GetIcon() Gets an icon suitable for display in the user interface.
GetTitle() Gets a title suitable for display in lists and search results-
Validate(ValidationContext) Performs custom validation. Subclasses can override this method to perform their own implementation.

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, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
Url(Space, bool) Returns the url to the first app of the specified type in a space.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.