You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
895 B

//
// NSArray+Engine.h
// pEpiOSAdapter
//
// Created by Dirk Zimmermann on 21.10.20.
// Copyright © 2020 p≡p. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "stringlist.h"
#import "identity_list.h"
#import "bloblist.h"
@class PEPIdentity;
NS_ASSUME_NONNULL_BEGIN
@interface NSArray (Engine)
+ (instancetype)arrayFromStringlist:(stringlist_t *)stringList;
+ (NSArray<PEPIdentity *> *)arrayFromIdentityList:(identity_list *)identityList;
+ (instancetype)arrayFromStringPairlist:(stringpair_list_t * _Nonnull)stringPairList;
+ (instancetype)arrayFromBloblist:(bloblist_t * _Nonnull)blobList;
- (stringlist_t * _Nullable)toStringList;
/// Converts `NSArray<PEPIdentity *>` to an engine identity list
- (identity_list * _Nullable)toIdentityList;
- (stringpair_list_t * _Nullable)toStringPairlist;
- (bloblist_t * _Nullable)toBloblist;
@end
NS_ASSUME_NONNULL_END