1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-18 09:35:20 +02:00
joplin/packages/app-mobile/ios/ShareExtension/Source/Common/ShareData.h
2021-04-24 09:22:11 +01:00

25 lines
652 B
Objective-C

//
// ShareData.h
// ShareExtension
//
// Created by Duncan Cunningham on 2/6/21.
// Copyright © 2021 joplinapp.org. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ShareData : NSObject
@property (nonatomic, strong) NSString* title;
@property (nonatomic, strong) NSString* text;
@property (nonatomic, strong) NSArray<NSDictionary*>* resources;
- (id)initWithDictionary:(NSDictionary*)dictionary;
- (NSDictionary*)encodeToDictionary;
+ (NSDictionary*)resourceDictionaryForURL:(NSString*)url withName:(NSString*)name andMimeType:(NSString*)mimeType;
+ (NSString*)resourceURLFromDictionary:(NSDictionary*)dictionary;
@end