Ignite Tools
Shared/Airship/Library/SubscriptionLib/UASubscriptionContent.h
00001 /*
00002  Copyright 2009-2011 Urban Airship Inc. All rights reserved.
00003 
00004  Redistribution and use in source and binary forms, with or without
00005  modification, are permitted provided that the following conditions are met:
00006 
00007  1. Redistributions of source code must retain the above copyright notice, this
00008  list of conditions and the following disclaimer.
00009 
00010  2. Redistributions in binaryform must reproduce the above copyright notice,
00011  this list of conditions and the following disclaimer in the documentation
00012  and/or other materials provided withthe distribution.
00013 
00014  THIS SOFTWARE IS PROVIDED BY THE URBAN AIRSHIP INC``AS IS'' AND ANY EXPRESS OR
00015  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00016  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
00017  EVENT SHALL URBAN AIRSHIP INC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
00018  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00019  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00020  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00021  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
00022  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
00023  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00024  */
00025 
00026 #import <Foundation/Foundation.h>
00027 
00028 #import "UAObservable.h"
00029 #import "UA_ASIProgressDelegate.h"
00030 
00031 @interface UASubscriptionContent : UAObservable <UA_ASIProgressDelegate> {
00032   @private
00033     NSString *contentName;
00034     NSString *contentKey;
00035     NSString *subscriptionKey;
00036         NSString *productIdentifier;
00037     NSURL *iconURL;
00038     NSURL *previewURL;
00039     NSURL *downloadURL;
00040     int revision;
00041     int fileSize;
00042     NSString *description;
00043     NSDate *publishDate;
00044 
00045     BOOL downloaded;
00046     float progress;
00047 }
00048 
00049 @property (nonatomic, retain) NSString *contentName;
00050 @property (nonatomic, retain) NSString *contentKey;
00051 @property (nonatomic, retain) NSString *subscriptionKey;
00052 @property (nonatomic, retain) NSString *productIdentifier;
00053 @property (nonatomic, retain) NSURL *iconURL;
00054 @property (nonatomic, retain) NSURL *previewURL;
00055 @property (nonatomic, retain) NSURL *downloadURL;
00056 @property (nonatomic, assign) int revision;
00057 @property (nonatomic, assign) int fileSize;
00058 @property (nonatomic, retain) NSString *description;
00059 
00066 @property (nonatomic, retain) NSDate *publishDate;
00067 @property (nonatomic, assign) float progress;
00068 @property (nonatomic, assign) BOOL downloaded;
00069 @property (nonatomic, readonly, assign) BOOL downloading;
00070 
00071 - (id)initWithDict:(NSDictionary *)dict;
00072 
00073 @end
 All Classes Functions Variables Properties