-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update for API v2.12.0 - Season of the Lost & cross-play
- Loading branch information
Showing
23 changed files
with
385 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ public enum TagEnum | |
CommunityContent, | ||
Trending, | ||
Fireteam, | ||
Social, | ||
Preview, | ||
|
||
[EnumMember(Value = "")] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
BungieSharper.Entities/Config/Entities.Config.ClanBanner.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace BungieSharper.Entities.Config.ClanBanner | ||
{ | ||
public class ClanBannerSource { } | ||
|
||
public class ClanBannerDecal | ||
{ | ||
[JsonPropertyName("identifier")] | ||
public string Identifier { get; set; } | ||
|
||
[JsonPropertyName("foregroundPath")] | ||
public string ForegroundPath { get; set; } | ||
|
||
[JsonPropertyName("backgroundPath")] | ||
public string BackgroundPath { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
BungieSharper.Entities/Social/Entities.Social.Friends.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace BungieSharper.Entities.Social.Friends | ||
{ | ||
public class BungieFriendListResponse | ||
{ | ||
[JsonPropertyName("friends")] | ||
public IEnumerable<Social.Friends.BungieFriend> Friends { get; set; } | ||
} | ||
|
||
public class BungieFriend | ||
{ | ||
[JsonPropertyName("lastSeenAsMembershipId")] | ||
public long LastSeenAsMembershipId { get; set; } | ||
|
||
[JsonPropertyName("lastSeenAsBungieMembershipType")] | ||
public BungieMembershipType LastSeenAsBungieMembershipType { get; set; } | ||
|
||
[JsonPropertyName("bungieGlobalDisplayName")] | ||
public string BungieGlobalDisplayName { get; set; } | ||
|
||
[JsonPropertyName("bungieGlobalDisplayNameCode"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | ||
public short? BungieGlobalDisplayNameCode { get; set; } | ||
|
||
[JsonPropertyName("onlineStatus")] | ||
public Social.Friends.PresenceStatus OnlineStatus { get; set; } | ||
|
||
[JsonPropertyName("onlineTitle")] | ||
public Social.Friends.PresenceOnlineStateFlags OnlineTitle { get; set; } | ||
|
||
[JsonPropertyName("relationship")] | ||
public Social.Friends.FriendRelationshipState Relationship { get; set; } | ||
|
||
[JsonPropertyName("bungieNetUser")] | ||
public User.GeneralUser BungieNetUser { get; set; } | ||
} | ||
|
||
public enum PresenceStatus : int | ||
{ | ||
OfflineOrUnknown = 0, | ||
Online = 1 | ||
} | ||
|
||
[System.Flags] | ||
public enum PresenceOnlineStateFlags : int | ||
{ | ||
None = 0, | ||
Destiny1 = 1, | ||
Destiny2 = 2 | ||
} | ||
|
||
public enum FriendRelationshipState : int | ||
{ | ||
Unknown = 0, | ||
Friend = 1, | ||
IncomingRequest = 2, | ||
OutgoingRequest = 3 | ||
} | ||
|
||
public class BungieFriendRequestListResponse | ||
{ | ||
[JsonPropertyName("incomingRequests")] | ||
public IEnumerable<Social.Friends.BungieFriend> IncomingRequests { get; set; } | ||
|
||
[JsonPropertyName("outgoingRequests")] | ||
public IEnumerable<Social.Friends.BungieFriend> OutgoingRequests { get; set; } | ||
} | ||
|
||
public enum PlatformFriendType : int | ||
{ | ||
Unknown = 0, | ||
Xbox = 1, | ||
PSN = 2, | ||
Steam = 3 | ||
} | ||
|
||
public class PlatformFriendResponse | ||
{ | ||
[JsonPropertyName("itemsPerPage")] | ||
public int ItemsPerPage { get; set; } | ||
|
||
[JsonPropertyName("currentPage")] | ||
public int CurrentPage { get; set; } | ||
|
||
[JsonPropertyName("hasMore")] | ||
public bool HasMore { get; set; } | ||
|
||
[JsonPropertyName("platformFriends")] | ||
public IEnumerable<Social.Friends.PlatformFriend> PlatformFriends { get; set; } | ||
} | ||
|
||
public class PlatformFriend | ||
{ | ||
[JsonPropertyName("platformDisplayName")] | ||
public string PlatformDisplayName { get; set; } | ||
|
||
[JsonPropertyName("friendPlatform")] | ||
public Social.Friends.PlatformFriendType FriendPlatform { get; set; } | ||
|
||
[JsonPropertyName("destinyMembershipId"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | ||
public long? DestinyMembershipId { get; set; } | ||
|
||
[JsonPropertyName("destinyMembershipType"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | ||
public int? DestinyMembershipType { get; set; } | ||
|
||
[JsonPropertyName("bungieNetMembershipId"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | ||
public long? BungieNetMembershipId { get; set; } | ||
|
||
[JsonPropertyName("bungieGlobalDisplayName")] | ||
public string BungieGlobalDisplayName { get; set; } | ||
|
||
[JsonPropertyName("bungieGlobalDisplayNameCode"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | ||
public short? BungieGlobalDisplayNameCode { get; set; } | ||
} | ||
} |
Oops, something went wrong.