-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #171 from ably/refactor-payload
Rename payload -> data, refactor message data encoding.
- Loading branch information
Showing
34 changed files
with
413 additions
and
952 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// ARTDataEncoder.h | ||
// ably-ios | ||
// | ||
// Created by Jason Choy on 18/12/2014. | ||
// Copyright (c) 2014 Ably. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "CompatibilityMacros.h" | ||
#import "ARTStatus.h" | ||
#import "ARTCrypto.h" | ||
|
||
@class ARTCipherParams; | ||
|
||
ART_ASSUME_NONNULL_BEGIN | ||
|
||
@interface ARTDataEncoderOutput : NSObject | ||
|
||
@property (readonly, nonatomic, art_nullable) id data; | ||
@property (readonly, nonatomic, art_nullable) NSString *encoding; | ||
@property (readonly, nonatomic) ARTStatus *status; | ||
|
||
- initWithData:(id __art_nullable)data encoding:(NSString *__art_nullable)encoding status:(ARTStatus *)status; | ||
|
||
@end | ||
|
||
@interface ARTDataEncoder : NSObject | ||
|
||
- (instancetype)initWithCipherParams:(ARTCipherParams *)params logger:(ARTLog *)logger; | ||
- (ARTDataEncoderOutput *)encode:(id __art_nullable)data; | ||
- (ARTDataEncoderOutput *)decode:(id __art_nullable)data encoding:(NSString *__art_nullable)encoding; | ||
|
||
@end | ||
|
||
@interface NSString (ARTDataEncoder) | ||
|
||
- (NSString *)artAddEncoding:(NSString *)encoding; | ||
- (NSString *)artLastEncoding; | ||
- (NSString *)artRemoveLastEncoding; | ||
|
||
@end | ||
|
||
ART_ASSUME_NONNULL_END |
Oops, something went wrong.