public void RefreshFeedStatuses(FeedStatus[] feedStatuses) { CollectionHelper.ApplySourceToDestination(feedStatuses, Feeds, (source, dest) => source.FeedId == dest.Id, (source) => new FeedStatusModel(source), (source, dest) => dest.RefreshFromFeedStatus(source) ); Feeds.Sort((lhs, rhs) => String.Compare(lhs.Name, rhs.Name)); }
public void RefreshRebroadcastServerConnections(IList <RebroadcastServerConnection> connections) { CollectionHelper.ApplySourceToDestination(connections, Rebroadcasters, (source, dest) => source.RebroadcastServerId == dest.Id, (source) => new RebroadcastServerConnectionModel(source), (source, dest) => dest.RefreshFromRebroadcastServerConnection(source) ); Rebroadcasters.Sort((lhs, rhs) => String.Compare(lhs.Name, rhs.Name)); }