PGMethod.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // PGMethod.h
  3. // Pandora
  4. //
  5. // Created by Pro_C Mac on 12-12-24.
  6. //
  7. //
  8. #ifndef _PANDORA_PGMETHOD_H_
  9. #define _PANDORA_PGMETHOD_H_
  10. #import <Foundation/Foundation.h>
  11. typedef NS_ENUM(NSInteger, PGMethodStatus) {
  12. PGMethodStatusNormal,
  13. PGMethodStatusAfterAuth
  14. };
  15. /** JavaScript 调用参数
  16. */
  17. @interface PGMethod : NSObject
  18. + (PGMethod*)commandFromJson:(NSArray*)pJsonEntry;
  19. + (PGMethod*)commandWithHtmlID:(NSString*)htmlID
  20. withFeatureName:(NSString*)featureName
  21. withfunctionName:(NSString*)functionName
  22. withArguments:(id)arguments;
  23. - (void) legacyArguments:(NSMutableArray**)legacyArguments andDict:(NSMutableDictionary**)legacyDict ;
  24. @property (nonatomic, retain)NSString* htmlID;
  25. @property (nonatomic, retain)NSString* featureName;
  26. @property (nonatomic, retain)NSString* functionName;
  27. @property (nonatomic, retain)NSString* callBackID;
  28. @property (nonatomic, retain)NSString* sid;
  29. @property (nonatomic, retain)NSString* locationHerf;
  30. @property (nonatomic, assign)PGMethodStatus status;
  31. /// @brief JavaScirpt调用参数数组
  32. @property (nonatomic, retain)NSArray* arguments;
  33. -(id)getArgumentAtIndex:(NSUInteger)index;
  34. @end
  35. #endif