public HostedGameData(Guid id, Guid gameguid, Version gameversion, int port, string name, User huser, DateTime startTime, string gameName, string gameIconUrl, bool hasPassword, IPAddress ipAddress, HostedGameSource source, EHostedGame status, bool spectator) { ProcessId = -1; Id = id; GameGuid = gameguid; GameVersion = gameversion; Port = port; Name = name; Username = huser.UserName; GameStatus = status; TimeStarted = startTime; HasPassword = hasPassword; GameName = gameName; IpAddress = ipAddress; Source = source; Spectator = spectator; GameIconUrl = gameIconUrl; if (huser.ApiUser != null) { UserIconUrl = huser.ApiUser.IconUrl; } if (UserIconUrl == null) { UserIconUrl = ""; } if (GameIconUrl == null) { GameIconUrl = ""; } }
public HostedGameData(Guid id,Guid gameguid, Version gameversion, int port, string name, User huser, DateTime startTime, string gameName, string gameIconUrl, bool hasPassword, IPAddress ipAddress, HostedGameSource source, EHostedGame status, bool spectator) : base("gameitem", "gameitem", "octgn:gameitem") { ProcessId = -1; Id = id; GameGuid = gameguid; GameVersion = gameversion; Port = port; Name = name; Username = huser.UserName; GameStatus = status; TimeStarted = startTime; HasPassword = hasPassword; GameName = gameName; IpAddress = ipAddress; Source = source; Spectator = spectator; GameIconUrl = gameIconUrl; if(huser.ApiUser != null) UserIconUrl = huser.ApiUser.IconUrl; if (UserIconUrl == null) UserIconUrl = ""; if (GameIconUrl == null) GameIconUrl = ""; }
public HostedGameData(Guid id, Guid gameguid, Version gameversion, int port, string name, User huser, DateTime startTime, string gameName, bool hasPassword, IPAddress ipAddress, HostedGameSource source, EHostedGame status, bool spectator) : base("gameitem", "gameitem", "octgn:gameitem") { ProcessId = -1; Id = id; GameGuid = gameguid; GameVersion = gameversion; Port = port; Name = name; Username = huser.UserName; GameStatus = status; TimeStarted = startTime; HasPassword = hasPassword; GameName = gameName; IpAddress = ipAddress; Source = source; Spectator = spectator; }