SpaceService Class


Service layer for Space objects.

public static class SpaceService
System.Object → SpaceService


ConversationsId The id of the Conversations space.
SystemId The id of the System space.


AddMember(Int32, Int32, Access, Boolean) Add a User as member of the specified Space.
Archive(Int32) Archives a Space.
Delete(Int32, Boolean) Permanently deletes a Space.
Get(Int32, Boolean) Gets a Space object from the repository.
GetAdmins(Int32, QueryOptions) Gets the users that are admins of the space.
GetByName(String, Boolean) Gets a Space object from the repository.
GetByPermission(Permission) Gets Spaces where the current User has the specified permission.
GetByTeamname(String, Boolean) Gets a Space object from the repository.
GetHQ(Boolean) Gets the space flagged as the "Company HQ".
GetJoined(Nullable, Boolean) Gets all spaces where the specified User is member.
GetMember(Int32, Int32) Gets the specified space member.
GetMembers(Int32, MemberQuery) Get the members in the specified Space.
HasPendingMembershipRequest(Int32, Nullable) Gets a value indicating whether the current user has a pending membership request for the specified space.
Insert(Space) Inserts a Space object into the repository.
Join(Int32) Adds the current User as Member of the specified Space.
Leave(Int32) Removes the current User from the specified Space.
MakeAdmin(Int32) Make current User admin in the specified Space.
RemoveMember(Int32, Int32) Removes a Member from the specified Space.
Restore(Int32) Restored a Space from the trash.
ReviewMember(Int32, Int32, Access, Boolean, Boolean) Approves or denies a request to join a space.
Search(SpaceQuery) Performs a search according to the specified SpaceQuery object.
SetHQ(Nullable) Sets the "Company HQ".
Trash(Int32) Moves a Space to the trash.
Unarchive(Int32) Restores a Space from the archive.
Update(Space, Boolean) Updates a Space object in the repository.
UpdateMember(Int32, Int32, Access) Updates a Member in the specified Space with new permissions.