コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DestinyEntitiesProfilesDestinyProfileComponent" /> class.
 /// </summary>
 /// <param name="userInfo">If you need to render the Profile (their platform name, icon, etc...) somewhere, this property contains that information..</param>
 /// <param name="dateLastPlayed">The last time the user played with any character on this Profile..</param>
 /// <param name="versionsOwned">If you want to know what expansions they own, this will contain that data.   IMPORTANT: This field may not return the data you&#39;re interested in for Cross-Saved users. It returns the last ownership data we saw for this account - which is to say, what they&#39;ve purchased on the platform on which they last played, which now could be a different platform.   If you don&#39;t care about per-platform ownership and only care about whatever platform it seems they are playing on most recently, then this should be \&quot;good enough.\&quot; Otherwise, this should be considered deprecated. We do not have a good alternative to provide at this time with platform specific ownership data for DLC..</param>
 /// <param name="characterIds">A list of the character IDs, for further querying on your part..</param>
 /// <param name="seasonHashes">A list of seasons that this profile owns. Unlike versionsOwned, these stay with the profile across Platforms, and thus will be valid.   It turns out that Stadia Pro subscriptions will give access to seasons but only while playing on Stadia and with an active subscription. So some users (users who have Stadia Pro but choose to play on some other platform) won&#39;t see these as available: it will be whatever seasons are available for the platform on which they last played..</param>
 /// <param name="currentSeasonHash">If populated, this is a reference to the season that is currently active..</param>
 public DestinyEntitiesProfilesDestinyProfileComponent(UserUserInfoCard userInfo = default(UserUserInfoCard), DateTime dateLastPlayed = default(DateTime), int versionsOwned = default(int), List <long> characterIds = default(List <long>), List <long> seasonHashes = default(List <long>), long currentSeasonHash = default(long))
 {
     this.UserInfo          = userInfo;
     this.DateLastPlayed    = dateLastPlayed;
     this.VersionsOwned     = versionsOwned;
     this.CharacterIds      = characterIds;
     this.SeasonHashes      = seasonHashes;
     this.CurrentSeasonHash = currentSeasonHash;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GroupsV2GroupBan" /> class.
 /// </summary>
 /// <param name="groupId">groupId.</param>
 /// <param name="lastModifiedBy">lastModifiedBy.</param>
 /// <param name="createdBy">createdBy.</param>
 /// <param name="dateBanned">dateBanned.</param>
 /// <param name="dateExpires">dateExpires.</param>
 /// <param name="comment">comment.</param>
 /// <param name="bungieNetUserInfo">bungieNetUserInfo.</param>
 /// <param name="destinyUserInfo">destinyUserInfo.</param>
 public GroupsV2GroupBan(long groupId = default(long), UserUserInfoCard lastModifiedBy = default(UserUserInfoCard), UserUserInfoCard createdBy = default(UserUserInfoCard), DateTime dateBanned = default(DateTime), DateTime dateExpires = default(DateTime), string comment = default(string), UserUserInfoCard bungieNetUserInfo = default(UserUserInfoCard), GroupsV2GroupUserInfoCard destinyUserInfo = default(GroupsV2GroupUserInfoCard))
 {
     this.GroupId           = groupId;
     this.LastModifiedBy    = lastModifiedBy;
     this.CreatedBy         = createdBy;
     this.DateBanned        = dateBanned;
     this.DateExpires       = dateExpires;
     this.Comment           = comment;
     this.BungieNetUserInfo = bungieNetUserInfo;
     this.DestinyUserInfo   = destinyUserInfo;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DestinyHistoricalStatsDestinyPlayer" /> class.
 /// </summary>
 /// <param name="destinyUserInfo">Details about the player as they are known in game (platform display name, Destiny emblem).</param>
 /// <param name="characterClass">Class of the character if applicable and available..</param>
 /// <param name="classHash">classHash.</param>
 /// <param name="raceHash">raceHash.</param>
 /// <param name="genderHash">genderHash.</param>
 /// <param name="characterLevel">Level of the character if available. Zero if it is not available..</param>
 /// <param name="lightLevel">Light Level of the character if available. Zero if it is not available..</param>
 /// <param name="bungieNetUserInfo">Details about the player as they are known on BungieNet. This will be undefined if the player has marked their credential private, or does not have a BungieNet account..</param>
 /// <param name="clanName">Current clan name for the player. This value may be null or an empty string if the user does not have a clan..</param>
 /// <param name="clanTag">Current clan tag for the player. This value may be null or an empty string if the user does not have a clan..</param>
 /// <param name="emblemHash">If we know the emblem&#39;s hash, this can be used to look up the player&#39;s emblem at the time of a match when receiving PGCR data, or otherwise their currently equipped emblem (if we are able to obtain it)..</param>
 public DestinyHistoricalStatsDestinyPlayer(UserUserInfoCard destinyUserInfo = default(UserUserInfoCard), string characterClass = default(string), long classHash = default(long), long raceHash = default(long), long genderHash = default(long), int characterLevel = default(int), int lightLevel = default(int), UserUserInfoCard bungieNetUserInfo = default(UserUserInfoCard), string clanName = default(string), string clanTag = default(string), long emblemHash = default(long))
 {
     this.DestinyUserInfo   = destinyUserInfo;
     this.CharacterClass    = characterClass;
     this.ClassHash         = classHash;
     this.RaceHash          = raceHash;
     this.GenderHash        = genderHash;
     this.CharacterLevel    = characterLevel;
     this.LightLevel        = lightLevel;
     this.BungieNetUserInfo = bungieNetUserInfo;
     this.ClanName          = clanName;
     this.ClanTag           = clanTag;
     this.EmblemHash        = emblemHash;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GroupsV2GroupPotentialMember" /> class.
 /// </summary>
 /// <param name="potentialStatus">potentialStatus.</param>
 /// <param name="groupId">groupId.</param>
 /// <param name="destinyUserInfo">destinyUserInfo.</param>
 /// <param name="bungieNetUserInfo">bungieNetUserInfo.</param>
 /// <param name="joinDate">joinDate.</param>
 public GroupsV2GroupPotentialMember(int potentialStatus = default(int), long groupId = default(long), GroupsV2GroupUserInfoCard destinyUserInfo = default(GroupsV2GroupUserInfoCard), UserUserInfoCard bungieNetUserInfo = default(UserUserInfoCard), DateTime joinDate = default(DateTime))
 {
     this.PotentialStatus   = potentialStatus;
     this.GroupId           = groupId;
     this.DestinyUserInfo   = destinyUserInfo;
     this.BungieNetUserInfo = bungieNetUserInfo;
     this.JoinDate          = joinDate;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DestinyResponsesDestinyLinkedProfilesResponse" /> class.
 /// </summary>
 /// <param name="profiles">Any Destiny account for whom we could successfully pull characters will be returned here, as the Platform-level summary of user data. (no character data, no Destiny account data other than the Membership ID and Type so you can make further queries).</param>
 /// <param name="bnetMembership">If the requested membership had a linked Bungie.Net membership ID, this is the basic information about that BNet account.  I know, Tetron; I know this is mixing UserServices concerns with DestinyServices concerns. But it&#39;s so damn convenient! https://www.youtube.com/watch?v&#x3D;X5R-bB-gKVI.</param>
 /// <param name="profilesWithErrors">This is brief summary info for profiles that we believe have valid Destiny info, but who failed to return data for some other reason and thus we know that subsequent calls for their info will also fail..</param>
 public DestinyResponsesDestinyLinkedProfilesResponse(List <DestinyResponsesDestinyProfileUserInfoCard> profiles = default(List <DestinyResponsesDestinyProfileUserInfoCard>), UserUserInfoCard bnetMembership = default(UserUserInfoCard), List <DestinyResponsesDestinyErrorProfile> profilesWithErrors = default(List <DestinyResponsesDestinyErrorProfile>))
 {
     this.Profiles           = profiles;
     this.BnetMembership     = bnetMembership;
     this.ProfilesWithErrors = profilesWithErrors;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FireteamFireteamMember" /> class.
 /// </summary>
 /// <param name="destinyUserInfo">destinyUserInfo.</param>
 /// <param name="bungieNetUserInfo">bungieNetUserInfo.</param>
 /// <param name="characterId">characterId.</param>
 /// <param name="dateJoined">dateJoined.</param>
 /// <param name="hasMicrophone">hasMicrophone.</param>
 /// <param name="lastPlatformInviteAttemptDate">lastPlatformInviteAttemptDate.</param>
 /// <param name="lastPlatformInviteAttemptResult">lastPlatformInviteAttemptResult.</param>
 public FireteamFireteamMember(FireteamFireteamUserInfoCard destinyUserInfo = default(FireteamFireteamUserInfoCard), UserUserInfoCard bungieNetUserInfo = default(UserUserInfoCard), long characterId = default(long), DateTime dateJoined = default(DateTime), bool hasMicrophone = default(bool), DateTime lastPlatformInviteAttemptDate = default(DateTime), int lastPlatformInviteAttemptResult = default(int))
 {
     this.DestinyUserInfo                 = destinyUserInfo;
     this.BungieNetUserInfo               = bungieNetUserInfo;
     this.CharacterId                     = characterId;
     this.DateJoined                      = dateJoined;
     this.HasMicrophone                   = hasMicrophone;
     this.LastPlatformInviteAttemptDate   = lastPlatformInviteAttemptDate;
     this.LastPlatformInviteAttemptResult = lastPlatformInviteAttemptResult;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DestinyResponsesDestinyErrorProfile" /> class.
 /// </summary>
 /// <param name="errorCode">The error that we encountered. You should be able to look up localized text to show to the user for these failures..</param>
 /// <param name="infoCard">Basic info about the account that failed. Don&#39;t expect anything other than membership ID, Membership Type, and displayName to be populated..</param>
 public DestinyResponsesDestinyErrorProfile(int errorCode = default(int), UserUserInfoCard infoCard = default(UserUserInfoCard))
 {
     this.ErrorCode = errorCode;
     this.InfoCard  = infoCard;
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplicationsApplicationDeveloper" /> class.
 /// </summary>
 /// <param name="role">role.</param>
 /// <param name="apiEulaVersion">apiEulaVersion.</param>
 /// <param name="user">user.</param>
 public ApplicationsApplicationDeveloper(int role = default(int), int apiEulaVersion = default(int), UserUserInfoCard user = default(UserUserInfoCard))
 {
     this.Role           = role;
     this.ApiEulaVersion = apiEulaVersion;
     this.User           = user;
 }
コード例 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GroupsV2GroupUserBase" /> class.
 /// </summary>
 /// <param name="groupId">groupId.</param>
 /// <param name="destinyUserInfo">destinyUserInfo.</param>
 /// <param name="bungieNetUserInfo">bungieNetUserInfo.</param>
 /// <param name="joinDate">joinDate.</param>
 public GroupsV2GroupUserBase(long groupId = default(long), GroupsV2GroupUserInfoCard destinyUserInfo = default(GroupsV2GroupUserInfoCard), UserUserInfoCard bungieNetUserInfo = default(UserUserInfoCard), DateTime joinDate = default(DateTime))
 {
     this.GroupId           = groupId;
     this.DestinyUserInfo   = destinyUserInfo;
     this.BungieNetUserInfo = bungieNetUserInfo;
     this.JoinDate          = joinDate;
 }
コード例 #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GroupsV2GroupMemberApplication" /> class.
 /// </summary>
 /// <param name="groupId">groupId.</param>
 /// <param name="creationDate">creationDate.</param>
 /// <param name="resolveState">resolveState.</param>
 /// <param name="resolveDate">resolveDate.</param>
 /// <param name="resolvedByMembershipId">resolvedByMembershipId.</param>
 /// <param name="requestMessage">requestMessage.</param>
 /// <param name="resolveMessage">resolveMessage.</param>
 /// <param name="destinyUserInfo">destinyUserInfo.</param>
 /// <param name="bungieNetUserInfo">bungieNetUserInfo.</param>
 public GroupsV2GroupMemberApplication(long groupId = default(long), DateTime creationDate = default(DateTime), int resolveState = default(int), DateTime resolveDate = default(DateTime), long resolvedByMembershipId = default(long), string requestMessage = default(string), string resolveMessage = default(string), GroupsV2GroupUserInfoCard destinyUserInfo = default(GroupsV2GroupUserInfoCard), UserUserInfoCard bungieNetUserInfo = default(UserUserInfoCard))
 {
     this.GroupId                = groupId;
     this.CreationDate           = creationDate;
     this.ResolveState           = resolveState;
     this.ResolveDate            = resolveDate;
     this.ResolvedByMembershipId = resolvedByMembershipId;
     this.RequestMessage         = requestMessage;
     this.ResolveMessage         = resolveMessage;
     this.DestinyUserInfo        = destinyUserInfo;
     this.BungieNetUserInfo      = bungieNetUserInfo;
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GroupsV2GroupMember" /> class.
 /// </summary>
 /// <param name="memberType">memberType.</param>
 /// <param name="isOnline">isOnline.</param>
 /// <param name="lastOnlineStatusChange">lastOnlineStatusChange.</param>
 /// <param name="groupId">groupId.</param>
 /// <param name="destinyUserInfo">destinyUserInfo.</param>
 /// <param name="bungieNetUserInfo">bungieNetUserInfo.</param>
 /// <param name="joinDate">joinDate.</param>
 public GroupsV2GroupMember(int memberType = default(int), bool isOnline = default(bool), long lastOnlineStatusChange = default(long), long groupId = default(long), GroupsV2GroupUserInfoCard destinyUserInfo = default(GroupsV2GroupUserInfoCard), UserUserInfoCard bungieNetUserInfo = default(UserUserInfoCard), DateTime joinDate = default(DateTime))
 {
     this.MemberType             = memberType;
     this.IsOnline               = isOnline;
     this.LastOnlineStatusChange = lastOnlineStatusChange;
     this.GroupId           = groupId;
     this.DestinyUserInfo   = destinyUserInfo;
     this.BungieNetUserInfo = bungieNetUserInfo;
     this.JoinDate          = joinDate;
 }