mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
a98c82645c
* Update proto schema to reflect typing indicators. * Sketch out OWSTypingIndicatorMessage. * Add "online" to the service message params. * Sketch out logic to send typing indicator messages. * Sketch out OWSTypingIndicators class.
33 lines
1.2 KiB
Objective-C
33 lines
1.2 KiB
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "TSConstants.h"
|
|
#import <Mantle/Mantle.h>
|
|
|
|
/**
|
|
* Contstructs the per-device-message parameters used when submitting a message to
|
|
* the Signal Web Service.
|
|
*
|
|
* See:
|
|
* https://github.com/signalapp/libsignal-service-java/blob/master/java/src/main/java/org/whispersystems/signalservice/internal/push/OutgoingPushMessage.java
|
|
*/
|
|
@interface OWSMessageServiceParams : MTLModel <MTLJSONSerializing>
|
|
|
|
@property (nonatomic, readonly) int type;
|
|
@property (nonatomic, readonly) NSString *destination;
|
|
@property (nonatomic, readonly) int destinationDeviceId;
|
|
@property (nonatomic, readonly) int destinationRegistrationId;
|
|
@property (nonatomic, readonly) NSString *content;
|
|
@property (nonatomic, readonly) BOOL silent;
|
|
@property (nonatomic, readonly) BOOL online;
|
|
|
|
- (instancetype)initWithType:(TSWhisperMessageType)type
|
|
recipientId:(NSString *)destination
|
|
device:(int)deviceId
|
|
content:(NSData *)content
|
|
isSilent:(BOOL)isSilent
|
|
isOnline:(BOOL)isOnline
|
|
registrationId:(int)registrationId;
|
|
|
|
@end
|