ADHRequest.h 653 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // ADHRequest.h
  3. // ADHClient
  4. //
  5. // Created by woodpecker on 2017/11/4.
  6. // Copyright © 2017年 lifebetter. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class ADHRequest;
  10. @class ADHSession;
  11. @class ADHService;
  12. @interface ADHRequest : NSObject
  13. @property (nonatomic, strong) NSString * service;
  14. @property (nonatomic, strong) NSString * action;
  15. @property (nonatomic, strong) NSDictionary * body;
  16. @property (nonatomic, strong) NSData * payload;
  17. //must call at the end of a request
  18. - (void)finish;
  19. - (void)finishWithBody: (NSDictionary *)body;
  20. - (void)finishWithBody: (NSDictionary *)body payload: (NSData *)payload;
  21. @end