PGMethod.h
1.18 KB
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
32
33
34
35
36
37
38
39
40
41
42
//
// PGMethod.h
// Pandora
//
// Created by Pro_C Mac on 12-12-24.
//
//
#ifndef _PANDORA_PGMETHOD_H_
#define _PANDORA_PGMETHOD_H_
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, PGMethodStatus) {
PGMethodStatusNormal,
PGMethodStatusAfterAuth
};
/** JavaScript 调用参数
*/
@interface PGMethod : NSObject
+ (PGMethod*)commandFromJson:(NSArray*)pJsonEntry;
+ (PGMethod*)commandWithHtmlID:(NSString*)htmlID
withFeatureName:(NSString*)featureName
withfunctionName:(NSString*)functionName
withArguments:(id)arguments;
- (void) legacyArguments:(NSMutableArray**)legacyArguments andDict:(NSMutableDictionary**)legacyDict ;
@property (nonatomic, retain)NSString* htmlID;
@property (nonatomic, retain)NSString* featureName;
@property (nonatomic, retain)NSString* functionName;
@property (nonatomic, retain)NSString* callBackID;
@property (nonatomic, retain)NSString* sid;
@property (nonatomic, retain)NSString* locationHerf;
@property (nonatomic, assign)PGMethodStatus status;
/// @brief JavaScirpt调用参数数组
@property (nonatomic, retain)NSArray* arguments;
-(id)getArgumentAtIndex:(NSUInteger)index;
@end
#endif