public interface ICustomerActivityService { void LogActivity(string message, Customer customer); } // Implementation of ICustomerActivityService public class CustomerActivityService : ICustomerActivityService { public void LogActivity(string message, Customer customer) { // Log the activity to a file, database, or any other medium Console.WriteLine($"[{DateTime.Now}] {message} Customer {customer.Id}"); } }
public interface ICustomerActivityService { void TrackBehavior(string behavior, Customer customer); } // Implementation of ICustomerActivityService public class CustomerActivityService : ICustomerActivityService { public void TrackBehavior(string behavior, Customer customer) { // Track the behavior and store it in a data store dataStore.SaveBehavior(behavior, customer.Id); } }
public interface ICustomerActivityService { Report GenerateReport(Customer customer); } // Implementation of ICustomerActivityService public class CustomerActivityService : ICustomerActivityService { public Report GenerateReport(Customer customer) { // Generate a report based on the customer's activity and return it ListThis interface is typically found in a package or library that supports customer relationship management (CRM) and user engagement tracking. Some examples of such libraries are Microsoft Dynamics CRM, HubSpot, and Salesforce.activities = dataStore.GetActivities(customer.Id); Report report = new Report(activities); return report; } }