FBResponseJSONPayload.h 829 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import <Foundation/Foundation.h>
  10. #import <WebDriverAgentLib/FBResponsePayload.h>
  11. #import <WebDriverAgentLib/FBHTTPStatusCodes.h>
  12. NS_ASSUME_NONNULL_BEGIN
  13. /**
  14. Class that represents WebDriverAgent JSON repsonse
  15. */
  16. @interface FBResponseJSONPayload : NSObject <FBResponsePayload>
  17. /**
  18. Initializer for JSON respond that converts given 'dictionary' to JSON
  19. */
  20. - (instancetype)initWithDictionary:(NSDictionary *)dictionary
  21. httpStatusCode:(HTTPStatusCode)httpStatusCode;
  22. @end
  23. NS_ASSUME_NONNULL_END