Team class
From Catglobe Wiki
More actions
Team
Represents a team.
Parent class
Inherits from Array
Constructors
- (int Resource id "Unique id of the resource that owns the team") - Create a new team for a resource
- (int Resource id "Unique id of the resource that owns the team", int Team type id "Unique id of the team type", int Group resource id "Unique id of the group resource") - Create a new team for a resource with specific type and group
Methods
- Empty AddMember(TeamMember TeamMember "The team member to add") - Add a team member to this team
- Empty RemoveMember(int Role id "Role id of the team member entries to remove") - Remove all team members with the specified role from this team
- Empty RemoveMember(int Role id "Role id of the team member entry to remove", int Team member resource id "Resource id of the specific team member entry to remove") - Remove the team member with the specified role and resource id from this team
- bool RoleExists(int Role id "Unique id of the role") - Determine whether a team member with the specified role exists in this team
- Empty Save() - Save this team to the database
- string ToString() - The string representation of the object.
- object this[] { get; }(int index "Index") - Backward-compatible indexer
- Empty this[] { get; }(int index "Index", object value "Value to set") - Backward-compatible indexer
Properties
- number Average { get; } - Average of the objects in the Array object. Can only use if all the elements are of type Number
- int GroupResourceId { get; } - Group resource id
- number Max { get; } - Largest of all the objects in the Array object. Can only use if all the elements are of type Number
- array Members { get; set; } - The list of members in this team
- number Min { get; } - Smallest of all the objects in the Array object. Can only use if all the elements are of type Number
- string ObjectTypeName { get; } - The name of the type of object.
- int ResourceId { get; } - Resource id of the resource that owns this team
- number Sum { get; } - Sum of all the objects in the Array object. Can only use if all the elements are of type Number
- int TypeId { get; } - Team type id
- TypeInformation TypeInformation { get; } - Get information about this class.
- string TypeName { get; } - Team type name
Static Methods
- Array of Team Team_getListByResourceId(int Resource id "Unique id of the resource that owns the team") - Get a list of team objects for a resource
- Team Team_getTeamByResourceId(int Resource id "Unique id of the resource whose team to retrieve") - Get the default (own) team for the specified resource
- Team Team_getTeamByResourceId(int Resource id "Unique id of the resource whose team to retrieve", int Team type id "Unique id of the team type", int Group resource id "Unique id of the group resource") - Get a team for the specified resource, team type, and group
- Empty Team_removeTeam(int Resource id "Unique id of the resource that owns the team", int Team type id "Unique id of the team type", int Group resource id "Unique id of the group resource") - Remove a team from the specified resource
- bool Team_teamExists(int Resource id "Unique id of the resource that owns the team", int Team type id "Unique id of the team type", int Group resource id "Unique id of the group resource") - Determine whether a team exists for the specified resource