Task <bool> IGroupV2Client.ApprovePendingAsync(GroupsV2.GroupApplicationRequest groupApplicationRequest, long groupId, BungieMembershipType membershipType, long membershipId) { string[] pathSegments = new string[] { "GroupV2", groupId.ToString(), "Members", "Approve", ((int)membershipType).ToString(), membershipId.ToString() }; Uri uri = GetEndpointUri(BungieEndpointBase.Default, pathSegments, true, null); return(PostEntityAsync <GroupsV2.GroupApplicationRequest, bool>(uri, groupApplicationRequest)); }
Task <Entities.EntityActionResult[]> IGroupV2Client.DenyAllPendingAsync(GroupsV2.GroupApplicationRequest groupApplicationRequest, long groupId) { string[] pathSegments = new string[] { "GroupV2", groupId.ToString(), "Members", "DenyAll" }; Uri uri = GetEndpointUri(BungieEndpointBase.Default, pathSegments, true, null); return(PostEntityArrayAsync <GroupsV2.GroupApplicationRequest, Entities.EntityActionResult>(uri, groupApplicationRequest)); }
Task <GroupsV2.GroupApplicationResponse> IGroupV2Client.IndividualGroupInviteAsync(GroupsV2.GroupApplicationRequest groupApplicationRequest, long groupId, BungieMembershipType membershipType, long membershipId) { string[] pathSegments = new string[] { "GroupV2", groupId.ToString(), "Members", "IndividualInvite", ((int)membershipType).ToString(), membershipId.ToString() }; Uri uri = GetEndpointUri(BungieEndpointBase.Default, pathSegments, true, null); return(PostEntityAsync <GroupsV2.GroupApplicationRequest, GroupsV2.GroupApplicationResponse>(uri, groupApplicationRequest)); }
GroupsV2.GroupApplicationResponse IGroupV2Client.IndividualGroupInvite(GroupsV2.GroupApplicationRequest groupApplicationRequest, long groupId, BungieMembershipType membershipType, long membershipId) => GroupV2.IndividualGroupInviteAsync(groupApplicationRequest, groupId, membershipType, membershipId).GetAwaiter().GetResult();
bool IGroupV2Client.ApprovePending(GroupsV2.GroupApplicationRequest groupApplicationRequest, long groupId, BungieMembershipType membershipType, long membershipId) => GroupV2.ApprovePendingAsync(groupApplicationRequest, groupId, membershipType, membershipId).GetAwaiter().GetResult();
Entities.EntityActionResult[] IGroupV2Client.DenyAllPending(GroupsV2.GroupApplicationRequest groupApplicationRequest, long groupId) => GroupV2.DenyAllPendingAsync(groupApplicationRequest, groupId).GetAwaiter().GetResult();