// Copyright 2016 Tom Deseyn // This software is made available under the MIT License // See COPYING for details using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Tmds.DBus { /// /// Event data for the ServiceOwnerChanged event. /// public struct ServiceOwnerChangedEventArgs { /// /// Creates an instance of ServiceOwnerChangedEventArgs. /// /// The name of the service. /// The previous owner of the service. /// The new owner of the service. public ServiceOwnerChangedEventArgs(string serviceName, string oldOwner, string newOwner) { ServiceName = serviceName; OldOwner = oldOwner; NewOwner = newOwner; } /// /// Name of the service. /// public string ServiceName { get; } /// /// Local name of the previous owner. null when there is no previous owner. /// public string OldOwner { get; internal set; } /// /// Local name of the new owner. null when there is no new owner. /// public string NewOwner { get; } } }