Implemented some Net Signatures

This commit is contained in:
SND\AstrorEnales_cp 2011-11-16 15:08:04 +00:00
parent 6f602c3597
commit c005180b0e
5 changed files with 79 additions and 2 deletions

View File

@ -4,5 +4,15 @@ namespace ANX.Framework.Net
{ {
public class GamerJoinedEventArgs : EventArgs public class GamerJoinedEventArgs : EventArgs
{ {
public NetworkGamer Gamer
{
get;
private set;
}
public GamerJoinedEventArgs(NetworkGamer gamer)
{
Gamer = gamer;
}
} }
} }

View File

@ -4,5 +4,15 @@ namespace ANX.Framework.Net
{ {
public class GamerLeftEventArgs : EventArgs public class GamerLeftEventArgs : EventArgs
{ {
public NetworkGamer Gamer
{
get;
private set;
}
public GamerLeftEventArgs(NetworkGamer gamer)
{
Gamer = gamer;
}
} }
} }

View File

@ -4,5 +4,22 @@ namespace ANX.Framework.Net
{ {
public class HostChangedEventArgs : EventArgs public class HostChangedEventArgs : EventArgs
{ {
public NetworkGamer OldHost
{
get;
private set;
}
public NetworkGamer NewHost
{
get;
private set;
}
public HostChangedEventArgs(NetworkGamer oldHost, NetworkGamer newHost)
{
OldHost = oldHost;
NewHost = newHost;
}
} }
} }

View File

@ -2,7 +2,36 @@
namespace ANX.Framework.Net namespace ANX.Framework.Net
{ {
public class QualityOfService public sealed class QualityOfService
{ {
public bool IsAvailable
{
get;
internal set;
}
public int BytesPerSecondUpstream
{
get;
internal set;
}
public int BytesPerSecondDownstream
{
get;
internal set;
}
public TimeSpan AverageRoundtripTime
{
get;
internal set;
}
public TimeSpan MinimumRoundtripTime
{
get;
internal set;
}
} }
} }

View File

@ -2,7 +2,18 @@
namespace ANX.Framework.Net namespace ANX.Framework.Net
{ {
public class WriteLeaderboardsEventArgs : EventArgs public sealed class WriteLeaderboardsEventArgs : EventArgs
{ {
public NetworkGamer Gamer
{
get;
internal set;
}
public bool IsLeaving
{
get;
internal set;
}
} }
} }