Skip to content

Commit

Permalink
[skyapi] refs #5 Regenerate Objc library
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevMac committed Mar 26, 2019
1 parent 1e94592 commit 7034ff6
Show file tree
Hide file tree
Showing 89 changed files with 3,479 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/skyapi/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@ Carthage/Build

fastlane/report.xml
fastlane/screenshots
*.idea*
8 changes: 4 additions & 4 deletions lib/skyapi/skyapi.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Pod::Spec.new do |s|
s.name = "skyapi"
s.version = "v0.25.1"
s.version = "0.25.1"

s.summary = "Skycoin REST API."
s.description = <<-DESC
Expand All @@ -19,16 +19,16 @@ Pod::Spec.new do |s|
s.platform = :ios, '7.0'
s.requires_arc = true

s.framework = 'SystemConfiguration'
s.frameworks = 'SystemConfiguration', 'CoreData'

s.homepage = "https://github.com/openapitools/openapi-generator"
s.license = "Proprietary"
s.source = { :git => "https://github.com/openapitools/openapi-generator.git", :tag => "#{s.version}" }
s.author = { "OpenAPI" => "[email protected]" }
s.author = { "Skycoin" => "[email protected]" }

s.source_files = 'skyapi/**/*.{m,h}'
s.public_header_files = 'skyapi/**/*.h'

s.resources = 'skyapi/**/*.{xcdatamodeld,xcdatamodel}'

s.dependency 'AFNetworking', '~> 3'
s.dependency 'JSONModel', '~> 1.2'
Expand Down
2 changes: 1 addition & 1 deletion lib/skyapi/skyapi/Core/OAIConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/


static NSString * const kOAIAPIVersion = @"v0.25.1";
static NSString * const kOAIAPIVersion = @"0.25.1";

@protocol OAIConfiguration <NSObject>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

/**
* Skycoin REST API.
* Skycoin is a next-generation cryptocurrency.
*
* OpenAPI spec version: 0.25.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/




NS_ASSUME_NONNULL_BEGIN

@interface OAIApiv1exploreraddressInputsManagedObject : NSManagedObject


@property (nullable, nonatomic, retain) NSString* owner;

@property (nullable, nonatomic, retain) NSNumber* hours;

@property (nullable, nonatomic, retain) NSNumber* calculatedHours;

@property (nullable, nonatomic, retain) NSString* coins;

@property (nullable, nonatomic, retain) NSString* uxid;
@end

@interface OAIApiv1exploreraddressInputsManagedObject (GeneratedAccessors)

@end


NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#import "OAIApiv1exploreraddressInputsManagedObject.h"

/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
@implementation OAIApiv1exploreraddressInputsManagedObject

@dynamic owner;
@dynamic hours;
@dynamic calculatedHours;
@dynamic coins;
@dynamic uxid;
@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>


#import "OAIApiv1exploreraddressInputsManagedObject.h"
#import "OAIApiv1exploreraddressInputs.h"

/**
* Skycoin REST API.
* Skycoin is a next-generation cryptocurrency.
*
* OpenAPI spec version: 0.25.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


@interface OAIApiv1exploreraddressInputsManagedObjectBuilder : NSObject



-(OAIApiv1exploreraddressInputsManagedObject*)createNewOAIApiv1exploreraddressInputsManagedObjectInContext:(NSManagedObjectContext*)context;

-(OAIApiv1exploreraddressInputsManagedObject*)OAIApiv1exploreraddressInputsManagedObjectFromOAIApiv1exploreraddressInputs:(OAIApiv1exploreraddressInputs*)object context:(NSManagedObjectContext*)context;

-(void)updateOAIApiv1exploreraddressInputsManagedObject:(OAIApiv1exploreraddressInputsManagedObject*)object withOAIApiv1exploreraddressInputs:(OAIApiv1exploreraddressInputs*)object2;

-(OAIApiv1exploreraddressInputs*)OAIApiv1exploreraddressInputsFromOAIApiv1exploreraddressInputsManagedObject:(OAIApiv1exploreraddressInputsManagedObject*)obj;

-(void)updateOAIApiv1exploreraddressInputs:(OAIApiv1exploreraddressInputs*)object withOAIApiv1exploreraddressInputsManagedObject:(OAIApiv1exploreraddressInputsManagedObject*)object2;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@


#import "OAIApiv1exploreraddressInputsManagedObjectBuilder.h"

/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

@implementation OAIApiv1exploreraddressInputsManagedObjectBuilder

-(instancetype)init {
self = [super init];
if (self != nil) {
}
return self;
}

-(OAIApiv1exploreraddressInputsManagedObject*)createNewOAIApiv1exploreraddressInputsManagedObjectInContext:(NSManagedObjectContext*)context {
OAIApiv1exploreraddressInputsManagedObject *managedObject = [NSEntityDescription insertNewObjectForEntityForName:NSStringFromClass([OAIApiv1exploreraddressInputsManagedObject class]) inManagedObjectContext:context];
return managedObject;
}

-(OAIApiv1exploreraddressInputsManagedObject*)OAIApiv1exploreraddressInputsManagedObjectFromOAIApiv1exploreraddressInputs:(OAIApiv1exploreraddressInputs*)object context:(NSManagedObjectContext*)context {
OAIApiv1exploreraddressInputsManagedObject* newOAIApiv1exploreraddressInputs = [self createNewOAIApiv1exploreraddressInputsManagedObjectInContext:context];
[self updateOAIApiv1exploreraddressInputsManagedObject:newOAIApiv1exploreraddressInputs withOAIApiv1exploreraddressInputs:object];
return newOAIApiv1exploreraddressInputs;
}

-(void)updateOAIApiv1exploreraddressInputsManagedObject:(OAIApiv1exploreraddressInputsManagedObject*)managedObject withOAIApiv1exploreraddressInputs:(OAIApiv1exploreraddressInputs*)object {
if(!managedObject || !object) {
return;
}
NSManagedObjectContext* context = managedObject.managedObjectContext;
managedObject.owner = [object.owner copy];
managedObject.hours = [object.hours copy];
managedObject.calculatedHours = [object.calculatedHours copy];
managedObject.coins = [object.coins copy];
managedObject.uxid = [object.uxid copy];

}

-(OAIApiv1exploreraddressInputs*)OAIApiv1exploreraddressInputsFromOAIApiv1exploreraddressInputsManagedObject:(OAIApiv1exploreraddressInputsManagedObject*)obj {
if(!obj) {
return nil;
}
OAIApiv1exploreraddressInputs* newOAIApiv1exploreraddressInputs = [[OAIApiv1exploreraddressInputs alloc] init];
[self updateOAIApiv1exploreraddressInputs:newOAIApiv1exploreraddressInputs withOAIApiv1exploreraddressInputsManagedObject:obj];
return newOAIApiv1exploreraddressInputs;
}

-(void)updateOAIApiv1exploreraddressInputs:(OAIApiv1exploreraddressInputs*)newOAIApiv1exploreraddressInputs withOAIApiv1exploreraddressInputsManagedObject:(OAIApiv1exploreraddressInputsManagedObject*)obj {
newOAIApiv1exploreraddressInputs.owner = [obj.owner copy];
newOAIApiv1exploreraddressInputs.hours = [obj.hours copy];
newOAIApiv1exploreraddressInputs.calculatedHours = [obj.calculatedHours copy];
newOAIApiv1exploreraddressInputs.coins = [obj.coins copy];
newOAIApiv1exploreraddressInputs.uxid = [obj.uxid copy];
}

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

/**
* Skycoin REST API.
* Skycoin is a next-generation cryptocurrency.
*
* OpenAPI spec version: 0.25.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/




NS_ASSUME_NONNULL_BEGIN

@interface OAIApiv1exploreraddressOutputsManagedObject : NSManagedObject


@property (nullable, nonatomic, retain) NSNumber* hours;

@property (nullable, nonatomic, retain) NSString* dst;

@property (nullable, nonatomic, retain) NSString* coins;

@property (nullable, nonatomic, retain) NSString* uxid;
@end

@interface OAIApiv1exploreraddressOutputsManagedObject (GeneratedAccessors)

@end


NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#import "OAIApiv1exploreraddressOutputsManagedObject.h"

/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
@implementation OAIApiv1exploreraddressOutputsManagedObject

@dynamic hours;
@dynamic dst;
@dynamic coins;
@dynamic uxid;
@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>


#import "OAIApiv1exploreraddressOutputsManagedObject.h"
#import "OAIApiv1exploreraddressOutputs.h"

/**
* Skycoin REST API.
* Skycoin is a next-generation cryptocurrency.
*
* OpenAPI spec version: 0.25.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


@interface OAIApiv1exploreraddressOutputsManagedObjectBuilder : NSObject



-(OAIApiv1exploreraddressOutputsManagedObject*)createNewOAIApiv1exploreraddressOutputsManagedObjectInContext:(NSManagedObjectContext*)context;

-(OAIApiv1exploreraddressOutputsManagedObject*)OAIApiv1exploreraddressOutputsManagedObjectFromOAIApiv1exploreraddressOutputs:(OAIApiv1exploreraddressOutputs*)object context:(NSManagedObjectContext*)context;

-(void)updateOAIApiv1exploreraddressOutputsManagedObject:(OAIApiv1exploreraddressOutputsManagedObject*)object withOAIApiv1exploreraddressOutputs:(OAIApiv1exploreraddressOutputs*)object2;

-(OAIApiv1exploreraddressOutputs*)OAIApiv1exploreraddressOutputsFromOAIApiv1exploreraddressOutputsManagedObject:(OAIApiv1exploreraddressOutputsManagedObject*)obj;

-(void)updateOAIApiv1exploreraddressOutputs:(OAIApiv1exploreraddressOutputs*)object withOAIApiv1exploreraddressOutputsManagedObject:(OAIApiv1exploreraddressOutputsManagedObject*)object2;

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@


#import "OAIApiv1exploreraddressOutputsManagedObjectBuilder.h"

/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

@implementation OAIApiv1exploreraddressOutputsManagedObjectBuilder

-(instancetype)init {
self = [super init];
if (self != nil) {
}
return self;
}

-(OAIApiv1exploreraddressOutputsManagedObject*)createNewOAIApiv1exploreraddressOutputsManagedObjectInContext:(NSManagedObjectContext*)context {
OAIApiv1exploreraddressOutputsManagedObject *managedObject = [NSEntityDescription insertNewObjectForEntityForName:NSStringFromClass([OAIApiv1exploreraddressOutputsManagedObject class]) inManagedObjectContext:context];
return managedObject;
}

-(OAIApiv1exploreraddressOutputsManagedObject*)OAIApiv1exploreraddressOutputsManagedObjectFromOAIApiv1exploreraddressOutputs:(OAIApiv1exploreraddressOutputs*)object context:(NSManagedObjectContext*)context {
OAIApiv1exploreraddressOutputsManagedObject* newOAIApiv1exploreraddressOutputs = [self createNewOAIApiv1exploreraddressOutputsManagedObjectInContext:context];
[self updateOAIApiv1exploreraddressOutputsManagedObject:newOAIApiv1exploreraddressOutputs withOAIApiv1exploreraddressOutputs:object];
return newOAIApiv1exploreraddressOutputs;
}

-(void)updateOAIApiv1exploreraddressOutputsManagedObject:(OAIApiv1exploreraddressOutputsManagedObject*)managedObject withOAIApiv1exploreraddressOutputs:(OAIApiv1exploreraddressOutputs*)object {
if(!managedObject || !object) {
return;
}
NSManagedObjectContext* context = managedObject.managedObjectContext;
managedObject.hours = [object.hours copy];
managedObject.dst = [object.dst copy];
managedObject.coins = [object.coins copy];
managedObject.uxid = [object.uxid copy];

}

-(OAIApiv1exploreraddressOutputs*)OAIApiv1exploreraddressOutputsFromOAIApiv1exploreraddressOutputsManagedObject:(OAIApiv1exploreraddressOutputsManagedObject*)obj {
if(!obj) {
return nil;
}
OAIApiv1exploreraddressOutputs* newOAIApiv1exploreraddressOutputs = [[OAIApiv1exploreraddressOutputs alloc] init];
[self updateOAIApiv1exploreraddressOutputs:newOAIApiv1exploreraddressOutputs withOAIApiv1exploreraddressOutputsManagedObject:obj];
return newOAIApiv1exploreraddressOutputs;
}

-(void)updateOAIApiv1exploreraddressOutputs:(OAIApiv1exploreraddressOutputs*)newOAIApiv1exploreraddressOutputs withOAIApiv1exploreraddressOutputsManagedObject:(OAIApiv1exploreraddressOutputsManagedObject*)obj {
newOAIApiv1exploreraddressOutputs.hours = [obj.hours copy];
newOAIApiv1exploreraddressOutputs.dst = [obj.dst copy];
newOAIApiv1exploreraddressOutputs.coins = [obj.coins copy];
newOAIApiv1exploreraddressOutputs.uxid = [obj.uxid copy];
}

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

/**
* Skycoin REST API.
* Skycoin is a next-generation cryptocurrency.
*
* OpenAPI spec version: 0.25.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/




NS_ASSUME_NONNULL_BEGIN

@interface OAIApiv1exploreraddressStatusManagedObject : NSManagedObject


@property (nullable, nonatomic, retain) NSNumber* unconfirmed;

@property (nullable, nonatomic, retain) NSNumber* blockSeq;

@property (nullable, nonatomic, retain) NSNumber* label;

@property (nullable, nonatomic, retain) NSNumber* confirmed;
@end

@interface OAIApiv1exploreraddressStatusManagedObject (GeneratedAccessors)

@end


NS_ASSUME_NONNULL_END
Loading

0 comments on commit 7034ff6

Please sign in to comment.