pEpObjCAdapter/NSDictionary+CommType.m
author Dirk Zimmermann <dz@pep.security>
Thu, 12 Sep 2019 16:41:52 +0200
branchIOSAD-141
changeset 1245 cd15ff3a40b9
parent 989 ea535c5971b9
child 1086 52ff9d05f7d9
permissions -rw-r--r--
IOSAD-141 Don't share session between threads.
     1 //
     2 //  NSDictionary+CommType.m
     3 //  pEpObjCAdapter
     4 //
     5 //  Created by Dirk Zimmermann on 04.09.17.
     6 //  Copyright © 2017 p≡p. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 #import "NSDictionary+CommType.h"
    12 
    13 #import "PEPConstants.h"
    14 
    15 #import "PEPMessageUtil.h"
    16 
    17 @implementation NSDictionary (CommType)
    18 
    19 - (PEPCommType)commType
    20 {
    21     NSNumber *ctNum = self[kPepCommType];
    22     if (!ctNum) {
    23         return PEPCommTypeUnknown;
    24     }
    25     return ctNum.intValue;
    26 }
    27 
    28 @end