mirror of https://github.com/oxen-io/session-ios
parent
13a119b4b6
commit
c29549c213
@ -1,20 +0,0 @@
|
||||
// Copyright © 2016 Open Whisper Systems. All rights reserved.
|
||||
|
||||
#import "OWSMessageServiceParams.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
/**
|
||||
* Contstructs the per-device-message parameters used when submitting a message to
|
||||
* the Signal Web Service. Using a legacy parameter format. Cannot be used for Sync messages.
|
||||
*/
|
||||
@interface OWSLegacyMessageServiceParams : OWSMessageServiceParams
|
||||
|
||||
- (instancetype)initWithType:(TSWhisperMessageType)type
|
||||
recipientId:(NSString *)destination
|
||||
device:(int)deviceId
|
||||
body:(NSData *)body
|
||||
registrationId:(int)registrationId;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
@ -1,33 +0,0 @@
|
||||
// Copyright © 2016 Open Whisper Systems. All rights reserved.
|
||||
|
||||
#import "OWSLegacyMessageServiceParams.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@implementation OWSLegacyMessageServiceParams
|
||||
|
||||
+ (NSDictionary *)JSONKeyPathsByPropertyKey
|
||||
{
|
||||
NSMutableDictionary *keys = [[super JSONKeyPathsByPropertyKey] mutableCopy];
|
||||
[keys setObject:@"body" forKey:@"content"];
|
||||
return [keys copy];
|
||||
}
|
||||
|
||||
- (instancetype)initWithType:(TSWhisperMessageType)type
|
||||
recipientId:(NSString *)destination
|
||||
device:(int)deviceId
|
||||
body:(NSData *)body
|
||||
registrationId:(int)registrationId
|
||||
{
|
||||
self = [super initWithType:type recipientId:destination device:deviceId content:body registrationId:registrationId];
|
||||
if (!self) {
|
||||
return self;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
Loading…
Reference in New Issue