aboutsummaryrefslogtreecommitdiff
path: root/xcode/OLMKit/OLMMessage.h
blob: 2b747fb5f964436cb7b1edab1bff879d0dfbab1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
//  OLMMessage.h
//  olm
//
//  Created by Chris Ballinger on 4/8/16.
//
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, OLMMessageType) {
    OLMMessageTypeUnknown,
    OLMMessageTypePreKey,
    OLMMessageTypeMessage
};

@interface OLMMessage : NSObject

@property (nonatomic, readonly, nonnull) NSString *message;
@property (readonly) OLMMessageType type;

- (nonnull instancetype) initWithMessage:(nonnull NSString*)message type:(OLMMessageType)type;

@end