olm/xcode/OLMKit/OLMMessage.m

25 lines
425 B
Mathematica
Raw Normal View History

2016-04-09 02:24:41 +02:00
//
// OLMMessage.m
// olm
//
// Created by Chris Ballinger on 4/8/16.
//
//
#import "OLMMessage.h"
@implementation OLMMessage
2016-04-09 23:00:30 +02:00
- (nullable instancetype) initWithCiphertext:(nonnull NSString*)ciphertext type:(OLMMessageType)type {
NSParameterAssert(ciphertext != nil);
self = [super init];
if (!self) {
return nil;
}
_ciphertext = [ciphertext copy];
_type = type;
return self;
}
2016-04-09 02:24:41 +02:00
@end