AI-generated Key Takeaways
-
GMTSVehicleAttributeKeyValuePairis an object representing a key-value pair for vehicle attributes. -
The
keyproperty is a read-only string representing the attribute's key. -
The
valueproperty is a read-only string representing the attribute's value. -
The
initWithKey:value:method is used to initialize the object with a key and a value, both of which are required and non-nil strings. -
The
initmethod is unavailable and will returnnil, instructing the use ofinitWithKey:value:instead.
GMTSVehicleAttributeKeyValuePair
@interface GMTSVehicleAttributeKeyValuePair : GMTCImmutableDataObject that contains a vehicle attribute key/value pair.
-
The key of this pair.
Declaration
Swift
var key: String { get }Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull key; -
The value of this pair.
Declaration
Swift
var value: String { get }Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull value; -
Initialization of the object.
Declaration
Swift
init(key: String, value: String)Objective-C
- (nonnull instancetype)initWithKey:(nonnull NSString *)key value:(nonnull NSString *)value;Parameters
keyThe key, should not be nil.
valueThe value, should not be nil.
-
Unavailable
Will return nil. Use
-initWithKey:value:instead.Declaration
Objective-C
- (nonnull instancetype)init;