// _____ _
// |_ _| |_ _ _ ___ ___ _ __ __ _
// | | | ' \| '_/ -_) -_) ' \/ _` |_
// |_| |_||_|_| \___\___|_|_|_\__,_(_)
//
// Threema iOS Client
// Copyright (c) 2013-2020 Threema GmbH
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License, version 3,
// as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
#import
#import
#import "BaseMessage.h"
// Note that maximum value is 16.
enum {
kSystemMessageRenameGroup = 1, // The admin has renamed the group
kSystemMessageGroupMemberLeave = 2, // Another member has left the group
kSystemMessageGroupMemberAdd = 3, // The admin has added a member to the group
kSystemMessageGroupMemberForcedLeave = 4, // Another member was removed from the group
kSystemMessageGroupSelfAdded = 5, // I was added to the group
kSystemMessageGroupSelfRemoved = 6, // I was removed from the group
kSystemMessageGroupSelfLeft = 16, // I have left the group
kSystemMessageCallMissed = 7,
kSystemMessageCallRejected = 8,
kSystemMessageCallRejectedBusy = 9,
kSystemMessageCallRejectedTimeout = 10,
kSystemMessageCallEnded = 11,
kSystemMessageCallRejectedDisabled = 12,
kSystemMessageCallRejectedUnknown = 13,
kSystemMessageContactOtherAppInfo = 14,
kSystemMessageCallRejectedOffHours = 15
};
@interface SystemMessage : BaseMessage
@property (nonatomic, retain) NSNumber * type;
@property (nonatomic, retain) NSData * arg;
- (NSString*)format;
- (NSString *)callDetail;
- (BOOL)isCallType;
- (BOOL)haveCallTime;
- (NSString *)callTime;
@end