public static IHeadPhones GetHeadPhones(HeadPhoneTypes headPhoneTypes) { if (headPhoneTypes.Equals(HeadPhoneTypes.Wireless)) { return(new WirelessHeadPhones()); } else if (headPhoneTypes.Equals(HeadPhoneTypes.Wired)) { return(new WiredHeadPhones()); } else { return(null); } }
public IHeadPhones ShowHeadPhones(HeadPhoneTypes type) { return(HeadPhonesFactory.GetHeadPhones(type)); }