withSIX.Play.Core.Games.Legacy.Mods.AdvancedCollection.UpdateServersInfo C# (CSharp) Method

UpdateServersInfo() protected method

protected UpdateServersInfo ( CollectionVersionModel collectionVersion ) : void
collectionVersion CollectionVersionModel
return void
        protected void UpdateServersInfo(CollectionVersionModel collectionVersion) {
            if (collectionVersion.Servers != null) {
                Servers =
                    collectionVersion.Servers.Select(
                        x => new CollectionServer {Address = new ServerAddress(x.Address), Password = x.Password})
                        .ToList();
            } else
                Servers.Clear();
        }