Class Space

Inheritance Relationships

Base Type

Class Documentation

class Space : public csp::systems::BasicSpace

Data representation of a Space which maps to a UserService Group.

Data Values

A Space contains some basic information that define it, this is a 1:1 mapping to a UserService Group

csp::common::String CreatedBy
csp::common::String CreatedAt
csp::common::String OwnerId
csp::common::Array<csp::common::String> UserIds
csp::common::Array<csp::common::String> ModeratorIds
csp::common::Array<csp::common::String> BannedUserIds

Public Functions

Space() = default
Space(const Space &Other) = default
bool UserIsKnownToSpace(const csp::common::String UserId) const

Whether or not the user is “known” to the space.

That being defined by whether the userID is contained in the UserIds, ModeratorIds or is the Creator. Banned users do not count as known.

Returns

Whether or not the user is known to the space