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/PEPLanguage.m

36 lines
777 B
Matlab

//
// PEPLanguage.m
// pEpiOSAdapter
//
// Created by Dirk Zimmermann on 03.05.17.
// Copyright © 2017 pp. All rights reserved.
//
#import "PEPLanguage.h"
@implementation PEPLanguage
- (instancetype _Nonnull)initWithCode:(NSString * _Nonnull)code
name:(NSString * _Nonnull)name
sentence:(NSString * _Nonnull)sentence
{
if (self = [[PEPLanguage alloc] init]) {
_code = code;
_name = name;
_sentence = sentence;
}
return self;
}
- (NSString *)debugDescription
{
return [NSString stringWithFormat:@"<%@: %p> %@", [self class], self, self.description];
}
- (NSString *)description
{
return [NSString stringWithFormat:@"%@ %@", self.code, self.name];
}
@end