From f97e0e4ca4b548e1634423defaf07cfd23de61f4 Mon Sep 17 00:00:00 2001 From: Glatzemann Date: Wed, 16 Nov 2011 12:13:15 +0000 Subject: [PATCH] corrected some more signatures of GamerServices methods --- ANX.Framework/GamerServices/FriendGamer.cs | 103 ++++++++++++++++++ .../GameUpdateRequiredException.cs | 2 +- ANX.Framework/GamerServices/Gamer.cs | 98 +++++++++++++++++ .../GamerServices/GamerPrivilegeException.cs | 2 +- .../GamerServicesNotAvailableException.cs | 2 +- .../GuideAlreadyVisibleException.cs | 2 +- .../GamerServices/InviteAcceptedEventArgs.cs | 17 +++ .../GamerServices/NetworkException.cs | 19 ++++ .../NetworkNotAvailableException.cs | 22 +++- .../GamerServices/SignedOutEventArgs.cs | 10 ++ 10 files changed, 272 insertions(+), 5 deletions(-) diff --git a/ANX.Framework/GamerServices/FriendGamer.cs b/ANX.Framework/GamerServices/FriendGamer.cs index f6b1d09d..16f7caf9 100644 --- a/ANX.Framework/GamerServices/FriendGamer.cs +++ b/ANX.Framework/GamerServices/FriendGamer.cs @@ -54,5 +54,108 @@ namespace ANX.Framework.GamerServices { public sealed class FriendGamer : Gamer { + public bool FriendRequestReceivedFrom + { + get + { + throw new NotImplementedException(); + } + } + + public bool FriendRequestSentTo + { + get + { + throw new NotImplementedException(); + } + } + + public bool HasVoice + { + get + { + throw new NotImplementedException(); + } + } + + public bool InviteAccepted + { + get + { + throw new NotImplementedException(); + } + } + + public bool InviteReceivedFrom + { + get + { + throw new NotImplementedException(); + } + } + + public bool InviteRejected + { + get + { + throw new NotImplementedException(); + } + } + + public bool InviteSentTo + { + get + { + throw new NotImplementedException(); + } + } + + public bool IsAway + { + get + { + throw new NotImplementedException(); + } + } + + public bool IsBusy + { + get + { + throw new NotImplementedException(); + } + } + + public bool IsJoinable + { + get + { + throw new NotImplementedException(); + } + } + + public bool IsOnline + { + get + { + throw new NotImplementedException(); + } + } + + public bool IsPlaying + { + get + { + throw new NotImplementedException(); + } + } + + public string Presence + { + get + { + throw new NotImplementedException(); + } + } } } diff --git a/ANX.Framework/GamerServices/GameUpdateRequiredException.cs b/ANX.Framework/GamerServices/GameUpdateRequiredException.cs index c0aa7a43..f509fe0c 100644 --- a/ANX.Framework/GamerServices/GameUpdateRequiredException.cs +++ b/ANX.Framework/GamerServices/GameUpdateRequiredException.cs @@ -60,7 +60,7 @@ namespace ANX.Framework.GamerServices { } - public GameUpdateRequiredException(SerializationInfo info, StreamingContext context) + protected GameUpdateRequiredException(SerializationInfo info, StreamingContext context) : base(info, context) { } diff --git a/ANX.Framework/GamerServices/Gamer.cs b/ANX.Framework/GamerServices/Gamer.cs index 0eafcdb4..b677fe39 100644 --- a/ANX.Framework/GamerServices/Gamer.cs +++ b/ANX.Framework/GamerServices/Gamer.cs @@ -54,6 +54,104 @@ namespace ANX.Framework.GamerServices { public abstract class Gamer { + public static IAsyncResult BeginGetFromGamertag(string gamertag, AsyncCallback callback, Object asyncState) + { + throw new NotImplementedException(); + } + public static IAsyncResult BeginGetPartnerToken(string audienceUri, AsyncCallback callback, Object asyncState) + { + throw new NotImplementedException(); + } + + public IAsyncResult BeginGetProfile(AsyncCallback callback, Object asyncState) + { + throw new NotImplementedException(); + } + + public static Gamer EndGetFromGamertag(IAsyncResult result) + { + throw new NotImplementedException(); + } + + public static string EndGetPartnerToken(IAsyncResult result) + { + throw new NotImplementedException(); + } + + public GamerProfile EndGetProfile(IAsyncResult result) + { + throw new NotImplementedException(); + } + + public static Gamer GetFromGamertag(string gamertag) + { + throw new NotImplementedException(); + } + + public static string GetPartnerToken(string audienceUri) + { + throw new NotImplementedException(); + } + + public GamerProfile GetProfile() + { + throw new NotImplementedException(); + } + + public override string ToString() + { + throw new NotImplementedException(); + } + + public string DisplayName + { + get + { + throw new NotImplementedException(); + } + set + { + throw new NotImplementedException(); + } + } + + public string Gamertag + { + get + { + throw new NotImplementedException(); + } + } + + public bool IsDisposed + { + get + { + throw new NotImplementedException(); + } + } + + public LeaderboardWriter LeaderboardWriter + { + get + { + throw new NotImplementedException(); + } + } + + public static SignedInGamerCollection SignedInGamers + { + get + { + throw new NotImplementedException(); + } + } + + public Object Tag + { + get; + set; + } } } diff --git a/ANX.Framework/GamerServices/GamerPrivilegeException.cs b/ANX.Framework/GamerServices/GamerPrivilegeException.cs index 80ae5047..f189e21c 100644 --- a/ANX.Framework/GamerServices/GamerPrivilegeException.cs +++ b/ANX.Framework/GamerServices/GamerPrivilegeException.cs @@ -60,7 +60,7 @@ namespace ANX.Framework.GamerServices { } - public GamerPrivilegeException(SerializationInfo info, StreamingContext context) + protected GamerPrivilegeException(SerializationInfo info, StreamingContext context) : base(info, context) { } diff --git a/ANX.Framework/GamerServices/GamerServicesNotAvailableException.cs b/ANX.Framework/GamerServices/GamerServicesNotAvailableException.cs index c19003ea..c01ce862 100644 --- a/ANX.Framework/GamerServices/GamerServicesNotAvailableException.cs +++ b/ANX.Framework/GamerServices/GamerServicesNotAvailableException.cs @@ -60,7 +60,7 @@ namespace ANX.Framework.GamerServices { } - public GamerServicesNotAvailableException(SerializationInfo info, StreamingContext context) + protected GamerServicesNotAvailableException(SerializationInfo info, StreamingContext context) : base(info, context) { } diff --git a/ANX.Framework/GamerServices/GuideAlreadyVisibleException.cs b/ANX.Framework/GamerServices/GuideAlreadyVisibleException.cs index 35dc8c44..a272f08a 100644 --- a/ANX.Framework/GamerServices/GuideAlreadyVisibleException.cs +++ b/ANX.Framework/GamerServices/GuideAlreadyVisibleException.cs @@ -60,7 +60,7 @@ namespace ANX.Framework.GamerServices { } - public GuideAlreadyVisibleException(SerializationInfo info, StreamingContext context) + protected GuideAlreadyVisibleException(SerializationInfo info, StreamingContext context) : base(info, context) { } diff --git a/ANX.Framework/GamerServices/InviteAcceptedEventArgs.cs b/ANX.Framework/GamerServices/InviteAcceptedEventArgs.cs index b8797961..e72e0f43 100644 --- a/ANX.Framework/GamerServices/InviteAcceptedEventArgs.cs +++ b/ANX.Framework/GamerServices/InviteAcceptedEventArgs.cs @@ -54,5 +54,22 @@ namespace ANX.Framework.GamerServices { public class InviteAcceptedEventArgs : EventArgs { + public InviteAcceptedEventArgs(SignedInGamer gamer, bool isCurrentSession) + { + this.Gamer = gamer; + this.IsCurrentSession = isCurrentSession; + } + + public SignedInGamer Gamer + { + get; + private set; + } + + public bool IsCurrentSession + { + get; + private set; + } } } diff --git a/ANX.Framework/GamerServices/NetworkException.cs b/ANX.Framework/GamerServices/NetworkException.cs index a237491a..ec9e876b 100644 --- a/ANX.Framework/GamerServices/NetworkException.cs +++ b/ANX.Framework/GamerServices/NetworkException.cs @@ -1,5 +1,6 @@ #region Using Statements using System; +using System.Runtime.Serialization; #endregion // Using Statements @@ -54,6 +55,24 @@ namespace ANX.Framework.GamerServices { public class NetworkException : Exception { + public NetworkException() + : base() + { + } + protected NetworkException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + public NetworkException(string message) + : base(message) + { + } + + public NetworkException(string message, Exception innerException) + : base(message, innerException) + { + } } } diff --git a/ANX.Framework/GamerServices/NetworkNotAvailableException.cs b/ANX.Framework/GamerServices/NetworkNotAvailableException.cs index feaa5538..329f43f5 100644 --- a/ANX.Framework/GamerServices/NetworkNotAvailableException.cs +++ b/ANX.Framework/GamerServices/NetworkNotAvailableException.cs @@ -1,5 +1,6 @@ #region Using Statements using System; +using System.Runtime.Serialization; #endregion // Using Statements @@ -52,7 +53,26 @@ using System; namespace ANX.Framework.GamerServices { - public class NetworkNotAvailableException : Exception + public class NetworkNotAvailableException : NetworkException { + public NetworkNotAvailableException() + : base() + { + } + + protected NetworkNotAvailableException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + public NetworkNotAvailableException(string message) + : base(message) + { + } + + public NetworkNotAvailableException(string message, Exception innerException) + : base(message, innerException) + { + } } } diff --git a/ANX.Framework/GamerServices/SignedOutEventArgs.cs b/ANX.Framework/GamerServices/SignedOutEventArgs.cs index e15462fb..b7278197 100644 --- a/ANX.Framework/GamerServices/SignedOutEventArgs.cs +++ b/ANX.Framework/GamerServices/SignedOutEventArgs.cs @@ -54,5 +54,15 @@ namespace ANX.Framework.GamerServices { public class SignedOutEventArgs : EventArgs { + public SignedOutEventArgs(SignedInGamer gamer) + { + this.Gamer = gamer; + } + + public SignedInGamer Gamer + { + get; + private set; + } } }