RadarChain represents the chain of a place. Learn more about Places.
Properties
The unique ID of the chain. For a full list of chains, see Place Chains.
The name of the chain. For a full list of chains, see Place Chains.
The external ID of the chain.
The optional set of custom key-value pairs for the chain.
Methods
arrayForChains
+ (NSArray<NSDictionary *> *_Nullable)arrayForChains:(NSArray<RadarChain *> *_Nullable)chains;
Converts an array of RadarChain objects to an array of dictionaries.
dictionaryValue
- (NSDictionary *_Nonnull)dictionaryValue;
Returns the dictionary representation of the chain.
Example
let place: RadarPlace = event.place
if let chain = place.chain {
let chainSlug = chain.slug
let chainName = chain.name
let chainExternalId = chain.externalId
let chainMetadata = chain.metadata
if chainSlug == "starbucks" {
// place is a Starbucks
}
}
RadarPlace *place = event.place;
RadarChain *chain = place.chain;
if (chain) {
NSString *chainSlug = chain.slug;
NSString *chainName = chain.name;
NSString *chainExternalId = chain.externalId;
NSDictionary *chainMetadata = chain.metadata;
if ([chainSlug isEqualToString:@"starbucks"]) {
// place is a Starbucks
}
}