From 329a367b763c8b9482ffbb9b770b0da326351e48 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 29 Jan 2021 15:57:46 -0600 Subject: bump Soulseek.NET to 2.0.0 --- src/slskd/Room.cs | 59 ------------------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 src/slskd/Room.cs (limited to 'src/slskd/Room.cs') diff --git a/src/slskd/Room.cs b/src/slskd/Room.cs deleted file mode 100644 index 28abdedb..00000000 --- a/src/slskd/Room.cs +++ /dev/null @@ -1,59 +0,0 @@ -namespace slskd -{ - using Soulseek; - using System.Collections.Generic; - using System.Linq; - using slskd.Entities; - - public class Room - { - /// - /// The room name. - /// - public string Name { get; set; } - - /// - /// A value indicating whether the room is private. - /// - public bool IsPrivate { get; set; } - - /// - /// The number of operators in the room, if private. - /// - public int? OperatorCount { get; set; } - - /// - /// The operators in the room, if private. - /// - public IList Operators { get; set; } - - /// - /// The owner of the room, if private. - /// - public string Owner { get; set; } - - /// - /// The list of users in the room. - /// - public IList Users { get; set; } = new List(); - - /// - /// The list of messages. - /// - public IList Messages { get; set; } = new List(); - - public static Room FromRoomData(RoomData roomData) - { - return new Room() - { - Name = roomData.Name, - IsPrivate = roomData.IsPrivate, - OperatorCount = roomData.OperatorCount, - Operators = roomData.Operators?.ToList(), - Owner = roomData.Owner, - Users = roomData.Users?.ToList(), - Messages = new List() - }; - } - } -} -- cgit v1.2.3