2012-08-09 09:45:04 +00:00
|
|
|
using System;
|
2012-10-10 16:07:28 +00:00
|
|
|
using ANX.Framework.NonXNA.Development;
|
2011-11-16 15:00:54 +00:00
|
|
|
|
2012-08-09 09:45:04 +00:00
|
|
|
// This file is part of the ANX.Framework created by the
|
|
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
|
|
// For details see: http://anxframework.codeplex.com/license
|
2011-11-18 10:41:44 +00:00
|
|
|
|
2011-11-16 15:00:54 +00:00
|
|
|
namespace ANX.Framework.Net
|
|
|
|
{
|
2012-10-10 16:07:28 +00:00
|
|
|
[PercentageComplete(100)]
|
2012-10-14 12:17:15 +00:00
|
|
|
[Developer("AstrorEnales")]
|
|
|
|
[TestState(TestStateAttribute.TestState.Tested)]
|
2012-10-10 16:07:28 +00:00
|
|
|
public sealed class QualityOfService
|
|
|
|
{
|
2012-10-14 12:17:15 +00:00
|
|
|
public bool IsAvailable { get; private set; }
|
|
|
|
public int BytesPerSecondUpstream { get; private set; }
|
|
|
|
public int BytesPerSecondDownstream { get; private set; }
|
|
|
|
public TimeSpan AverageRoundtripTime { get; private set; }
|
|
|
|
public TimeSpan MinimumRoundtripTime { get; private set; }
|
|
|
|
|
|
|
|
internal QualityOfService()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
internal QualityOfService(int bytesPerSecondUpstream, int bytesPerSecondDownstream, TimeSpan averageRoundtripTime,
|
|
|
|
TimeSpan minimumRoundtripTime)
|
|
|
|
{
|
|
|
|
BytesPerSecondUpstream = bytesPerSecondUpstream;
|
|
|
|
BytesPerSecondDownstream = bytesPerSecondDownstream;
|
|
|
|
AverageRoundtripTime = averageRoundtripTime;
|
|
|
|
MinimumRoundtripTime = minimumRoundtripTime;
|
|
|
|
IsAvailable = true;
|
|
|
|
}
|
2012-10-10 16:07:28 +00:00
|
|
|
}
|
2011-11-16 15:00:54 +00:00
|
|
|
}
|