Task <GroupsV2.GroupV2Card[]> IGroupV2Client.GetRecommendedGroupsAsync(GroupsV2.GroupType groupType, GroupsV2.GroupDateRange createDateRange) { string[] pathSegments = new string[] { "GroupV2", "Recommended", ((int)groupType).ToString(), ((int)createDateRange).ToString() }; Uri uri = GetEndpointUri(BungieEndpointBase.Default, pathSegments, true, null); return(PostEntityArrayAsync <GroupsV2.GroupV2Card>(uri)); }
public void Update(GroupNameSearchRequest?other) { if (other is null) { return; } if (GroupName != other.GroupName) { GroupName = other.GroupName; OnPropertyChanged(nameof(GroupName)); } if (GroupType != other.GroupType) { GroupType = other.GroupType; OnPropertyChanged(nameof(GroupType)); } }
Task <GroupsV2.GroupPotentialMembershipSearchResponse> IGroupV2Client.GetPotentialGroupsForMemberAsync(BungieMembershipType membershipType, long membershipId, GroupsV2.GroupPotentialMemberStatus filter, GroupsV2.GroupType groupType) { string[] pathSegments = new string[] { "GroupV2", "User", "Potential", ((int)membershipType).ToString(), membershipId.ToString(), ((int)filter).ToString(), ((int)groupType).ToString() }; Uri uri = GetEndpointUri(BungieEndpointBase.Default, pathSegments, true, null); return(GetEntityAsync <GroupsV2.GroupPotentialMembershipSearchResponse>(uri)); }
GroupsV2.GroupPotentialMembershipSearchResponse IGroupV2Client.GetPotentialGroupsForMember(BungieMembershipType membershipType, long membershipId, GroupsV2.GroupPotentialMemberStatus filter, GroupsV2.GroupType groupType) => GroupV2.GetPotentialGroupsForMemberAsync(membershipType, membershipId, filter, groupType).GetAwaiter().GetResult();
Task <GroupsV2.GroupMembershipSearchResponse> IGroupV2Client.RecoverGroupForFounderAsync(BungieMembershipType membershipType, long membershipId, GroupsV2.GroupType groupType) { string[] pathSegments = new string[] { "GroupV2", "Recover", ((int)membershipType).ToString(), membershipId.ToString(), ((int)groupType).ToString() }; Uri uri = GetEndpointUri(BungieEndpointBase.Default, pathSegments, true, null); return(GetEntityAsync <GroupsV2.GroupMembershipSearchResponse>(uri)); }
GroupsV2.GroupMembershipSearchResponse IGroupV2Client.RecoverGroupForFounder(BungieMembershipType membershipType, long membershipId, GroupsV2.GroupType groupType) => GroupV2.RecoverGroupForFounderAsync(membershipType, membershipId, groupType).GetAwaiter().GetResult();
GroupsV2.GetGroupsForMemberResponse IGroupV2Client.GetGroupsForMember(BungieMembershipType membershipType, long membershipId, GroupsV2.GroupsForMemberFilter filter, GroupsV2.GroupType groupType) => GroupV2.GetGroupsForMemberAsync(membershipType, membershipId, filter, groupType).GetAwaiter().GetResult();
Task <GroupsV2.GroupResponse> IGroupV2Client.GetGroupByNameAsync(string groupName, GroupsV2.GroupType groupType) { if (groupName is null) { throw new ArgumentNullException(nameof(groupName)); } string[] pathSegments = new string[] { "GroupV2", "Name", groupName, ((int)groupType).ToString() }; Uri uri = GetEndpointUri(BungieEndpointBase.Default, pathSegments, true, null); return(GetEntityAsync <GroupsV2.GroupResponse>(uri)); }
GroupsV2.GroupResponse IGroupV2Client.GetGroupByName(string groupName, GroupsV2.GroupType groupType) => GroupV2.GetGroupByNameAsync(groupName, groupType).GetAwaiter().GetResult();
GroupsV2.GroupV2Card[] IGroupV2Client.GetRecommendedGroups(GroupsV2.GroupType groupType, GroupsV2.GroupDateRange createDateRange) => GroupV2.GetRecommendedGroupsAsync(groupType, createDateRange).GetAwaiter().GetResult();