- Started Windows, Metro and Linux Platform-Plugins - Moved the RecordingSample to the Samples folder - Started two samples for using the graphics device in a WinForms and Wpf Editor - Refactorings in the AddIn-System - Moved the Window initialization-code to the Platform modules - Changed the License text in all code files which is now way smaller - Started ProjectConverter tool which converts all the projects and solution to the target configuration - Changed the SupportedPlatform names in the Resource files - Changed the WIN8 define to WINDOWSMETRO which is actually meant - Removed NLog and started our own Logger class - Many more stuff...
143 lines
3.4 KiB
C#
143 lines
3.4 KiB
C#
#region Using Statements
|
|
using System;
|
|
using System.Net;
|
|
|
|
#endregion // Using Statements
|
|
|
|
// 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
|
|
|
|
namespace ANX.Framework.Net
|
|
{
|
|
public sealed class AvailableNetworkSession
|
|
{
|
|
private NetworkSessionType sessionType;
|
|
private int openPublicGamerSlots;
|
|
private QualityOfService qualityOfService;
|
|
private NetworkSessionProperties sessionProperties;
|
|
#if !WINDOWSMETRO //TODO: search replacement for Win8
|
|
private IPEndPoint endPoint;
|
|
private IPEndPoint internalendPoint;
|
|
#endif
|
|
private int _currentGameCount;
|
|
private string hostGamertag;
|
|
private int openPrivateGamerSlots;
|
|
|
|
public AvailableNetworkSession()
|
|
{
|
|
qualityOfService = new QualityOfService();
|
|
}
|
|
|
|
public int CurrentGamerCount
|
|
{
|
|
get
|
|
{
|
|
return _currentGameCount;
|
|
}
|
|
internal set
|
|
{
|
|
_currentGameCount = value;
|
|
}
|
|
}
|
|
|
|
public string HostGamertag
|
|
{
|
|
get
|
|
{
|
|
return hostGamertag;
|
|
}
|
|
internal set
|
|
{
|
|
hostGamertag = value;
|
|
}
|
|
}
|
|
|
|
public int OpenPrivateGamerSlots
|
|
{
|
|
get
|
|
{
|
|
return openPrivateGamerSlots;
|
|
}
|
|
internal set
|
|
{
|
|
openPrivateGamerSlots = value;
|
|
}
|
|
}
|
|
|
|
public int OpenPublicGamerSlots
|
|
{
|
|
get
|
|
{
|
|
return openPublicGamerSlots;
|
|
}
|
|
internal set
|
|
{
|
|
openPublicGamerSlots = value;
|
|
}
|
|
}
|
|
|
|
public QualityOfService QualityOfService
|
|
{
|
|
get
|
|
{
|
|
return qualityOfService;
|
|
}
|
|
internal set
|
|
{
|
|
qualityOfService = value;
|
|
}
|
|
}
|
|
|
|
public NetworkSessionProperties SessionProperties
|
|
{
|
|
get
|
|
{
|
|
return sessionProperties;
|
|
}
|
|
internal set
|
|
{
|
|
sessionProperties = value;
|
|
}
|
|
}
|
|
|
|
#if !WINDOWSMETRO //TODO: search replacement for Win8
|
|
internal IPEndPoint EndPoint
|
|
{
|
|
get
|
|
{
|
|
return endPoint;
|
|
}
|
|
set
|
|
{
|
|
endPoint = value;
|
|
}
|
|
}
|
|
|
|
internal IPEndPoint InternalEndpont
|
|
{
|
|
get
|
|
{
|
|
return internalendPoint;
|
|
}
|
|
set
|
|
{
|
|
internalendPoint = value;
|
|
}
|
|
}
|
|
#endif
|
|
|
|
internal NetworkSessionType SessionType
|
|
{
|
|
get
|
|
{
|
|
return this.sessionType;
|
|
}
|
|
set
|
|
{
|
|
this.sessionType = value;
|
|
}
|
|
}
|
|
}
|
|
}
|