forked from illusionspaces/WKJavaScriptBridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSHRMPluginResult.h
More file actions
31 lines (21 loc) · 752 Bytes
/
Copy pathSHRMPluginResult.h
File metadata and controls
31 lines (21 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// SHRMPluginResult.h
// Hybrid-framework
//
// Created by Kevin on 2019/4/23.
// Copyright © 2019 王凯. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, SHRMCommandStatus) {
SHRMCommandStatus_OK = 0,
SHRMCommandStatus_ERROR
};
@interface SHRMPluginResult : NSObject
@property (nonatomic, strong, readonly) NSNumber* status;
@property (nonatomic, strong, readonly) id message;
+ (SHRMPluginResult*)resultWithStatus:(SHRMCommandStatus)statusOrdinal messageAsDictionary:(NSDictionary*)theMessage;
+ (SHRMPluginResult *)resultWithStatus:(SHRMCommandStatus)statusOrdinal messageAsString:(NSString *)theMessage;
- (NSString*)argumentsAsJSON;
@end
NS_ASSUME_NONNULL_END