Interface IPartyService
Service to Manage Parties. At this time the Party Service is limited in functionality and is not intended to provide a fully extensible solution.
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public interface IPartyService
Methods
CloseParty(Int32)
Closes a Party based on it's ID
Declaration
Task CloseParty(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The Parties DB recordnumber |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
GetParties(Int32, PartyStatus)
Method used to get a collection of parties for an associate in a specified state
Declaration
Task<Party[]> GetParties(int associateId, PartyStatus status)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | associateId | Required. The Associates DB recordnumber |
PartyStatus | status | Required. Filter by status. 0: Open, 1: Closed, 2: Awarded |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Party[]> | Returns Parties that the associate is Hosting or is the Creator of the party with the given status |
GetParty(Int32)
Find a Party based on it's ID
Declaration
Task<Party> GetParty(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The Parties DB recordnumber |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Party> | Specified Party, or null |