Parties Plugins Functions
Find Parties
Retrieves a list of parties based on the specified parameters.
- Unity3D
- TypeScript
var parties = await ServiceHub.Services.Party.GetParties(new GetPartiesParams
{
Query = "",
Skip = 0,
Limit = 0
});
DynamicPixels.Services.Party.GetParties(input: T): Promise<Party[]>
Create New Party
Creates a new party based on the specified parameters.
- Unity3D
- TypeScript
var party = await ServiceHub.Services.Party.CreateParty(new CreatePartyParams
{
Data = new PartyInput
{
Name = "",
Desc = "",
MaxMemberCount = 0,
IsPrivate = false,
Teams = new string[] { },
Channels = new string[] { },
Variables = new Dictionary<string, string>()
}
});
DynamicPixels.Services.Party.CreateParty(): Promise<Party>
Get Subscribed parties
Retrieves a list of parties the user has subscribed to.
- Unity3D
- TypeScript
var parties = await ServiceHub.Services.Party.GetSubscribedParties(new GetSubscribedPartiesParams
{
Query = "",
Skip = 0,
Limit = 0
});
DynamicPixels.Services.Party.GetLeaderboards(): Promise<Leaderboard[]>
Join To Party
Joins the user to a specified party.
- Unity3D
- TypeScript
var partyMemberInfo = await ServiceHub.Services.Party.JoinToParty(new JoinToPartyParams
{
PartyId = 0,
Team = "",
Channels = new string[] { }
});
DynamicPixels.Services.Party.
Leave Party
Removes a user from a specified party.
- Unity3D
- TypeScript
await ServiceHub.Services.Party.LeaveParty(new LeavePartyParams
{
PartyId = 0
});
DynamicPixels.Services.Party.
Get Party By ID
Retrieves a party by its unique identifier.
- Unity3D
- TypeScript
var party = await ServiceHub.Services.Party.GetPartyById(new GetPartyByIdParams
{
PartyId = 0
});
DynamicPixels.Services.Party.
Edit Party
Edits the details of a specified party.
- Unity3D
- TypeScript
var party = await ServiceHub.Services.Party.EditParty(new EditPartyParams
{
PartyId = 0,
Party = new PartyInput
{
Name = "",
Desc = "",
MaxMemberCount = 0,
IsPrivate = false,
Teams = new string[] { },
Channels = new string[] { },
Variables = new Dictionary<string, string>()
}
});
DynamicPixels.Services.Party.
Get Party Members
Retrieves a list of members in a specified party.
- Unity3D
- TypeScript
var members = await ServiceHub.Services.Party.GetPartyMembers(new GetPartyMembersParams
{
PartyId = 0,
Skip = 0,
Limit = 0
});
DynamicPixels.Services.Party.
Get Party Membership Requests
Retrieves a list of members waiting for approval to join a specified party.
- Unity3D
- TypeScript
var waitingMembers = await ServiceHub.Services.Party.GetPartyWaitingMembers(
new GetPartyWaitingMembersParams
{
PartyId = 0,
Skip = 0,
Limit = 0
});
DynamicPixels.Services.Party.GetLeaderboards(): Promise<Leaderboard[]>
Accept Join Request
Accepts a member's request to join a specified party.
- Unity3D
- TypeScript
var member = await ServiceHub.Services.Party.AcceptJoining(new AcceptJoiningParams
{
PartyId = 0,
MembershipId = 0
});
DynamicPixels.Services.Party
Reject Join Request
Rejects a member's request to join a specified party.
- Unity3D
- TypeScript
var member = await ServiceHub.Services.Party.RejectJoining(new RejectJoiningParams
{
PartyId = 0,
MembershipId = 0
});
DynamicPixels.Services.Party.GetLeaderboards(): Promise<Leaderboard[]>