Path: blob/main/SignalServiceKit/Calls/Group/OWSGroupCallMessage.h
1 views
//1// Copyright 2018 Signal Messenger, LLC2// SPDX-License-Identifier: AGPL-3.0-only3//45#import <SignalServiceKit/OWSReadTracking.h>6#import <SignalServiceKit/TSInteraction.h>78NS_ASSUME_NONNULL_BEGIN910@class AciObjC;11@class TSGroupThread;1213/// Represents a group call-related update that lives in chat history.14///15/// Not to be confused with an ``OutgoingGroupCallUpdateMessage``.16@interface OWSGroupCallMessage : TSInteraction1718/// The ACI-string of the creator of the call.19/// - Note20/// May be `nil` if we were unable to peek the call.21/// - Note22/// The name contains `Uuid` for SDS compatibility, but this is an ACI.23@property (nonatomic, nullable) NSString *creatorUuid;24@property (nonatomic, readonly, nullable) AciObjC *creatorAci;2526/// The ACI-strings of the members of the call.27/// - Note28/// May be empty if we were unable to peek the call.29/// - Note30/// The name contains `Uuid` for SDS compatibility, but these are ACIs.31@property (nonatomic, nullable) NSArray<NSString *> *joinedMemberUuids;32@property (nonatomic, readonly) NSArray<AciObjC *> *joinedMemberAcis;3334/// Whether the call has been ended, or is still in-progress.35@property (nonatomic) BOOL hasEnded;3637/// Whether this call has been read, or is "unread".38/// - SeeAlso ``OWSReadTracking``39@property (nonatomic, getter=wasRead) BOOL read;4041/// This property is deprecated, but remains here to preserve compatibility with42/// legacy data. Specifically, it will only be populated on old messages -43/// recent messages will instead have a corresponding ``CallRecord`` storing a44/// "call ID".45@property (nonatomic, readonly, nullable) NSString *eraId;4647- (instancetype)initWithCustomUniqueId:(NSString *)uniqueId48timestamp:(uint64_t)timestamp49receivedAtTimestamp:(uint64_t)receivedAtTimestamp50thread:(TSThread *)thread NS_UNAVAILABLE;51- (instancetype)initWithTimestamp:(uint64_t)timestamp52receivedAtTimestamp:(uint64_t)receivedAtTimestamp53thread:(TSThread *)thread NS_UNAVAILABLE;54- (instancetype)initWithGrdbId:(int64_t)grdbId55uniqueId:(NSString *)uniqueId56receivedAtTimestamp:(uint64_t)receivedAtTimestamp57sortId:(uint64_t)sortId58timestamp:(uint64_t)timestamp59uniqueThreadId:(NSString *)uniqueThreadId NS_UNAVAILABLE;6061- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;6263- (instancetype)initWithJoinedMemberAcis:(NSArray<AciObjC *> *)joinedMemberAcis64creatorAci:(nullable AciObjC *)creatorAci65thread:(TSGroupThread *)thread66sentAtTimestamp:(uint64_t)sentAtTimestamp NS_DESIGNATED_INITIALIZER;6768// --- CODE GENERATION MARKER6970// This snippet is generated by /Scripts/sds_codegen/sds_generate.py. Do not manually edit it, instead run71// `sds_codegen.sh`.7273// clang-format off7475- (instancetype)initWithGrdbId:(int64_t)grdbId76uniqueId:(NSString *)uniqueId77receivedAtTimestamp:(uint64_t)receivedAtTimestamp78sortId:(uint64_t)sortId79timestamp:(uint64_t)timestamp80uniqueThreadId:(NSString *)uniqueThreadId81creatorUuid:(nullable NSString *)creatorUuid82eraId:(nullable NSString *)eraId83hasEnded:(BOOL)hasEnded84joinedMemberUuids:(nullable NSArray<NSString *> *)joinedMemberUuids85read:(BOOL)read86NS_DESIGNATED_INITIALIZER NS_SWIFT_NAME(init(grdbId:uniqueId:receivedAtTimestamp:sortId:timestamp:uniqueThreadId:creatorUuid:eraId:hasEnded:joinedMemberUuids:read:));8788// clang-format on8990// --- CODE GENERATION MARKER9192@end9394NS_ASSUME_NONNULL_END959697