C# Class ActivEarth.Objects.Groups.Group

Exibir arquivo Open project: mlcamilli/ActivEarth Class Usage Examples

Public Properties

Property Type Description
Members List
Wall Wall

Public Methods

Method Description
Group ( ) : System

Creates a new Group. This constructor used when rebuilding Group object from DB.

Group ( string name, User owner, string description, List hashtags ) : System

Creates a new Group.

Join ( User newUser ) : void

Adds a User to the Group.

Post ( Message message ) : void

Posts a Message to the Group's Wall.

Quit ( User quittingUser ) : void

Removes a User from the Group.

Method Details

Group() public method

Creates a new Group. This constructor used when rebuilding Group object from DB.
public Group ( ) : System
return System

Group() public method

Creates a new Group.
public Group ( string name, User owner, string description, List hashtags ) : System
name string The name of the Group.
owner ActivEarth.Objects.Profile.User The User that created the Group
description string A text description of the Group.
hashtags List A list of hashtags that can be used to search for the Group
return System

Join() public method

Adds a User to the Group.
public Join ( User newUser ) : void
newUser ActivEarth.Objects.Profile.User The User to be added to the Group.
return void

Post() public method

Posts a Message to the Group's Wall.
public Post ( Message message ) : void
message Message The Message to be added to the Group's Wall.
return void

Quit() public method

Removes a User from the Group.
public Quit ( User quittingUser ) : void
quittingUser ActivEarth.Objects.Profile.User The User to be removed from the Group.
return void

Property Details

Members public_oe property

The list of members in the Group.
public List Members
return List

Wall public_oe property

The Group's Wall containing Message and Recent Activity posts.
public Wall,ActivEarth.Objects.Groups Wall
return Wall