-
Notifications
You must be signed in to change notification settings - Fork 57
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 #219 from WideSpectrumComputing/master
v1.10.0 release candidate
- Loading branch information
Showing
33 changed files
with
509 additions
and
301 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,31 @@ | ||
// | ||
// DeployApiCallOutcome.h | ||
// Rollbar | ||
// | ||
// Created by Andrey Kornich on 2019-11-08. | ||
// Copyright © 2019 Rollbar. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
typedef NS_ENUM(NSInteger, DeployApiCallOutcome) { | ||
DeployApiCallSuccess, | ||
DeployApiCallError, | ||
}; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/// Enum to/from NSString conversion utility | ||
@interface DeployApiCallOutcomeUtil : NSObject | ||
|
||
/// Converts DeployApiCallOutcome value into a NSString | ||
/// @param value DeployApiCallOutcome value to convert | ||
+ (NSString *) DeployApiCallOutcomeToString:(DeployApiCallOutcome)value; | ||
|
||
/// Converts NSString into a DeployApiCallOutcome value | ||
/// @param value NSString to convert | ||
+ (DeployApiCallOutcome) DeployApiCallOutcomeFromString:(NSString *)value; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
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,37 @@ | ||
// | ||
// DeployApiCallOutcome.m | ||
// Rollbar | ||
// | ||
// Created by Andrey Kornich on 2019-11-08. | ||
// Copyright © 2019 Rollbar. All rights reserved. | ||
// | ||
|
||
#import "DeployApiCallOutcome.h" | ||
|
||
@implementation DeployApiCallOutcomeUtil | ||
|
||
+ (NSString *) DeployApiCallOutcomeToString:(DeployApiCallOutcome)value; { | ||
switch (value) { | ||
case DeployApiCallSuccess: | ||
return @"success"; | ||
case DeployApiCallError: | ||
return @"error"; | ||
default: | ||
return @"unknown"; | ||
} | ||
} | ||
|
||
+ (DeployApiCallOutcome) DeployApiCallOutcomeFromString:(NSString *)value { | ||
|
||
if (NSOrderedSame == [value caseInsensitiveCompare:@"success"]) { | ||
return DeployApiCallSuccess; | ||
} | ||
else if (NSOrderedSame == [value caseInsensitiveCompare:@"error"]) { | ||
return DeployApiCallError; | ||
} | ||
else { | ||
return DeployApiCallError; // default case... | ||
} | ||
} | ||
|
||
@end |
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 |
---|---|---|
@@ -1,34 +1,63 @@ | ||
// Copyright © 2018 Rollbar. All rights reserved. | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import "DeploymentDetails.h" | ||
#import "RollbarJSONFriendlyObject.h" | ||
#import "DataTransferObject.h" | ||
#import "DeployApiCallOutcome.h" | ||
|
||
#pragma mark - DeployApiCallResult | ||
|
||
typedef NS_ENUM(NSInteger, DeployApiCallOutcome) { | ||
DeployApiCallSuccess, | ||
DeployApiCallError, | ||
}; | ||
/// Models result of Deploy API call/request | ||
@interface DeployApiCallResult : DataTransferObject | ||
|
||
@interface DeployApiCallResult : RollbarJSONFriendlyObject | ||
/// API call's outcome | ||
@property (readonly) DeployApiCallOutcome outcome; | ||
|
||
/// API call's result description | ||
@property (readonly, copy) NSString *description; | ||
|
||
- (id)initWithResponse:(NSHTTPURLResponse*)httpResponse | ||
data:(NSData*)data | ||
error:(NSError*)error | ||
forRequest:(NSURLRequest*)request; | ||
/// Designated initializer | ||
/// @param httpResponse HTTP response object | ||
/// @param data response data | ||
/// @param error error (if any) | ||
/// @param request corresponding HTTP request | ||
- (instancetype)initWithResponse:(NSHTTPURLResponse*)httpResponse | ||
data:(NSData*)data | ||
error:(NSError*)error | ||
forRequest:(NSURLRequest*)request | ||
NS_DESIGNATED_INITIALIZER; | ||
|
||
@end | ||
|
||
#pragma mark - DeploymentRegistrationResult | ||
|
||
/// Models result of a deployment registration request | ||
@interface DeploymentRegistrationResult : DeployApiCallResult | ||
|
||
/// Deployment ID | ||
@property (readonly, copy) NSString *deploymentId; | ||
|
||
@end | ||
|
||
#pragma mark - DeploymentDetailsResult | ||
|
||
/// Models result of a deployment details request | ||
@interface DeploymentDetailsResult : DeployApiCallResult | ||
|
||
/// Deployment details object | ||
@property (readonly, retain) DeploymentDetails *deployment; | ||
|
||
@end | ||
|
||
#pragma mark - DeploymentDetailsPageResult | ||
|
||
/// Models result of a deployment details page request | ||
@interface DeploymentDetailsPageResult : DeployApiCallResult | ||
@property (readonly, retain) NSSet<DeploymentDetails *> *deployments; | ||
@property (readonly, copy) NSNumber *pageNumber; | ||
|
||
/// Deployment details objects | ||
@property (readonly, retain) NSArray<DeploymentDetails *> *deployments; | ||
|
||
/// Deployment details page number | ||
@property (readonly) NSUInteger pageNumber; | ||
|
||
@end |
Oops, something went wrong.