aboutsummaryrefslogtreecommitdiff
path: root/xcode/OLMKit/OLMMessage.m
diff options
context:
space:
mode:
authorChris Ballinger <chrisballinger@gmail.com>2016-04-09 14:00:30 -0700
committerChris Ballinger <chrisballinger@gmail.com>2016-04-09 14:00:30 -0700
commitf505113fb7a6d61015ad8050b3fb4e26df029150 (patch)
tree0bdaba8f07189f3adc828c2895ce7429d9b3cb3e /xcode/OLMKit/OLMMessage.m
parent719eb543a8d08c4f536ea7933ffb3af0a8553e87 (diff)
Initial test passing
Diffstat (limited to 'xcode/OLMKit/OLMMessage.m')
-rw-r--r--xcode/OLMKit/OLMMessage.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/xcode/OLMKit/OLMMessage.m b/xcode/OLMKit/OLMMessage.m
index ce732ec..d0cfb41 100644
--- a/xcode/OLMKit/OLMMessage.m
+++ b/xcode/OLMKit/OLMMessage.m
@@ -10,4 +10,15 @@
@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