another.im-ios/Monal/Classes/MLContactSoftwareVersionInfo.h
2024-11-18 15:53:52 +01:00

30 lines
1 KiB
Objective-C

//
// MLContactSofwareVersionInfo.h
// monalxmpp
//
// Created by Friedrich Altheide on 24.12.21.
// Copyright © 2021 Monal.im. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface MLContactSoftwareVersionInfo : NSObject <NSSecureCoding>
@property (nonatomic, copy) NSString* fromJid;
@property (nonatomic, copy) NSString* _Nullable resource;
@property (nonatomic, copy) NSString* _Nullable appName;
@property (nonatomic, copy) NSString* _Nullable appVersion;
@property (nonatomic, copy) NSString* _Nullable platformOs;
@property (nonatomic, copy) NSDate* _Nullable lastInteraction;
+(BOOL) supportsSecureCoding;
-(instancetype) initWithJid:(NSString*) jid andRessource:(NSString* _Nullable) resource andAppName:(NSString* _Nullable) appName andAppVersion:(NSString* _Nullable) appVersion andPlatformOS:(NSString* _Nullable) platformOs andLastInteraction:(NSDate* _Nullable) lastInteraction;
-(BOOL) isEqual:(id _Nullable) object;
-(NSUInteger) hash;
@end
NS_ASSUME_NONNULL_END