Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MWMWatchEventInfo.mm « WatchEventHandler « Classes « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50d2e1808998c2c62aa26ad314b8dd41d21eea65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#import "MWMWatchEventInfo.h"

static NSString * const kRequestKey = @"request";

@implementation NSDictionary (MWMWatchEventInfo)

- (MWMWatchEventInfoRequest)watchEventInfoRequest
{
  NSNumber * requestValue = self[kRequestKey];
  return (MWMWatchEventInfoRequest)requestValue.unsignedIntegerValue;
}

@end

@implementation NSMutableDictionary (MWMWatchEventInfo)

- (void)setWatchEventInfoRequest:(MWMWatchEventInfoRequest)watchEventInfoRequest
{
  NSNumber * requestValue = @(watchEventInfoRequest);
  self[kRequestKey] = requestValue;
}

@end