TableSearch/APLProduct.h

 
/*
 Copyright (C) 2013-2015 Apple Inc. All Rights Reserved.
 See LICENSE.txt for this sample’s licensing information
 
 Abstract:
 Simple class to represent a product, with a product type and name. Provides methods to retrieve the names of the available types of product, and the localized name of a product for display.
 */
 
 
extern NSString *ProductTypeDevice;
extern NSString *ProductTypeDesktop;
extern NSString *ProductTypePortable;
 
 
@interface APLProduct : NSObject <NSCoding>
 
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *type;
 
+ (instancetype)productWithType:(NSString *)type name:(NSString *)name;
 
+ (NSArray *)deviceTypeNames;
+ (NSString *)displayNameForType:(NSString *)type;
 
@end