You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pEpObjCAdapter/pEpObjCAdapter/NSDictionary+CommType.m

29 lines
478 B
Objective-C

//
// NSDictionary+CommType.m
// pEpObjCAdapter
//
// Created by Dirk Zimmermann on 04.09.17.
// Copyright © 2017 p≡p. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "NSDictionary+CommType.h"
#import "PEPConstants.h"
#import "PEPMessageUtil.h"
@implementation NSDictionary (CommType)
- (PEPCommType)commType
{
NSNumber *ctNum = self[kPepCommType];
if (!ctNum) {
return PEPCommTypeUnknown;
}
return ctNum.intValue;
}
@end