-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcebd75
commit b46c30a
Showing
9 changed files
with
203 additions
and
19 deletions.
There are no files selected for viewing
Binary file not shown.
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,129 @@ | ||
// | ||
// CarnivalContentItem.h | ||
// Carnival | ||
// | ||
// Created by Carnival Mobile | ||
// Copyright (c) 2017 Carnival.io. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface CarnivalContentItem : NSObject | ||
|
||
/** | ||
* The unique ID of the content item. | ||
*/ | ||
@property (nonatomic, strong, nonnull) NSString *contentItemID; | ||
|
||
/** | ||
* The unique ID of the content item's url. | ||
*/ | ||
@property (nonatomic, strong, nonnull) NSString *contentItemHashID; | ||
|
||
/** | ||
* The title of the content item. | ||
*/ | ||
@property (nonatomic, strong, nonnull) NSString *title; | ||
|
||
/** | ||
* The description of the content item. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSString *contentItemDescription; | ||
|
||
/** | ||
* The amount of views of the content item. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSNumber *views; | ||
|
||
/** | ||
* The URL for the location of the content item. | ||
*/ | ||
@property (nonatomic, strong, nonnull) NSURL *URL; | ||
|
||
/** | ||
* The URL of image associated with content item. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSURL *imageURL; | ||
|
||
/** | ||
* The URL of the thumbnail image associated with content item. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSURL *imageThumbURL; | ||
|
||
/** | ||
* The URL of the full size image associated with content item. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSURL *imageFullURL; | ||
|
||
/** | ||
* A dictionary of all image sizes and URLs of images associated with content item. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSDictionary *images; | ||
|
||
/** | ||
* The date the content was created, if applicable. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSDate *date; | ||
|
||
/** | ||
* The tags associated with the content item. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSArray<NSString *>* tags; | ||
|
||
/** | ||
* The vars associated with the content item. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSDictionary *vars; | ||
|
||
/** | ||
* The date the content expires, if applicable. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSDate *expireDate; | ||
|
||
/** | ||
* Any additional fields associated with the content item's data. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSDictionary *extraFields; | ||
|
||
|
||
/* Media Items properties */ | ||
|
||
/** | ||
* The author of the content item, if applicable. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSString *author; | ||
|
||
/** | ||
* The location of the content item's origin. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSString *location; | ||
|
||
|
||
/* Ecommerce Items properties */ | ||
|
||
/** | ||
* The stock keeping unit of the content item. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSString *SKU; | ||
|
||
/** | ||
* The amount of inventory of the item. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSNumber *inventory; | ||
|
||
/** | ||
* The name of the site the item comes from. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSString *siteName; | ||
|
||
/** | ||
* The price of the content item. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSNumber *price; | ||
|
||
/** | ||
* The purchase quantity of the content item, if applicable. | ||
*/ | ||
@property (nonatomic, strong, nullable) NSNumber *purchaseQuantity; | ||
|
||
@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
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
Binary file not shown.
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,25 +1,25 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'Carnival' | ||
s.version = '7.1.1' | ||
s.version = '7.2.0-beta' | ||
s.summary = 'Carnival iOS SDK for integrating with http://carnival.io messaging and analytics service.' | ||
s.author = { | ||
'Carnival Mobile' => '[email protected]' | ||
} | ||
s.homepage = 'http://docs.carnival.io' | ||
s.source = { | ||
s.source = { | ||
:git => 'https://github.com/carnivalmobile/carnival-ios-sdk.git', | ||
:tag => s.version.to_s | ||
} | ||
} | ||
s.source_files = 'Carnival.framework/Headers/*.h' | ||
s.xcconfig = { | ||
'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/Carnival/**"' | ||
} | ||
s.platform = :ios | ||
s.ios.deployment_target = '8.0' | ||
s.resources = 'Carnival.framework/*.png' | ||
s.ios.deployment_target = '8.0' | ||
s.resources = 'Carnival.framework/*.png' | ||
s.public_header_files = 'Carnival.framework/Headers/*.h' | ||
s.vendored_frameworks = 'Carnival.framework' | ||
s.preserve_paths = 'Carnival.framework' | ||
s.preserve_paths = 'Carnival.framework' | ||
s.frameworks = 'UIKit', 'Foundation', 'CoreLocation', 'CoreGraphics', 'QuartzCore', 'UserNotifications' | ||
s.license = {:type => 'commercial', :text =>'Please refer to our privacy policy and terms of service at http://carnival.io'} | ||
s.requires_arc = true | ||
|