olm/xcode/OLMKit/OLMMessage.m
2016-04-09 14:00:30 -07:00

24 lines
425 B
Objective-C

//
// OLMMessage.m
// olm
//
// Created by Chris Ballinger on 4/8/16.
//
//
#import "OLMMessage.h"
@implementation OLMMessage
- (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;
}
@end