pEpObjCAdapter/PEPLanguage.m
author Dirk Zimmermann <dz@pep.security>
Fri, 20 Sep 2019 10:01:48 +0200
branchIOSAD-141
changeset 1250 b6a4d30abd26
parent 187 1f630a05e444
permissions -rw-r--r--
IOSAD-141 Test for "hammering" the engine.
     1 //
     2 //  PEPLanguage.m
     3 //  pEpiOSAdapter
     4 //
     5 //  Created by Dirk Zimmermann on 03.05.17.
     6 //  Copyright © 2017 p≡p. All rights reserved.
     7 //
     8 
     9 #import "PEPLanguage.h"
    10 
    11 @implementation PEPLanguage
    12 
    13 - (instancetype _Nonnull)initWithCode:(NSString * _Nonnull)code
    14                                  name:(NSString * _Nonnull)name
    15                                  sentence:(NSString * _Nonnull)sentence
    16 {
    17     if (self = [[PEPLanguage alloc] init]) {
    18         _code = code;
    19         _name = name;
    20         _sentence = sentence;
    21     }
    22     return self;
    23 }
    24 
    25 - (NSString *)debugDescription
    26 {
    27     return [NSString stringWithFormat:@"<%@: %p> %@", [self class], self, self.description];
    28 }
    29 
    30 - (NSString *)description
    31 {
    32     return [NSString stringWithFormat:@"%@ %@", self.code, self.name];
    33 }
    34 
    35 @end