[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/MobileIOS/Coding-iOS/master/Coding_iOS/Models/ProjectFile.h [Back]  [Original]

//
//  ProjectFile.h
//  Coding_iOS
//
//  Created by Ease on 14/11/13.
//  Copyright (c) 2014 Coding. All rights reserved.
//

#import 
#import "User.h"


typedef NS_ENUM(NSInteger, DownloadState){
    DownloadStateDefault = 0,
    DownloadStateDownloading,
    DownloadStatePausing,
    DownloadStateDownloaded
};

@class Coding_DownloadTask;

@interface ProjectFile : NSObject
@property (readwrite, nonatomic, strong) NSDate *created_at, *updated_at;
@property (readwrite, nonatomic, strong) NSNumber *id,*file_id, *owner_id, *parent_id, *type, *current_user_role_id, *size, *project_id, *number;
@property (readwrite, nonatomic, strong) NSString *name, *fileType, *owner_preview, *preview, *storage_key, *storage_type, *title, *share_url,*path;
@property (readwrite, nonatomic, strong) User *owner;
@property (strong, nonatomic, readonly) NSString *diskFileName;

+(ProjectFile *)fileWithFileId:(NSNumber *)fileId andProjectId:(NSNumber *)project_id;
- (instancetype)initWithFileId:(NSNumber *)fileId inProject:(NSString *)project_name ofUser:(NSString *)project_owner_name;

- (BOOL)isEmpty;

- (DownloadState)downloadState;
- (Coding_DownloadTask *)cDownloadTask;
- (NSURL *)hasBeenDownload;

- (NSString *)downloadPath;

- (NSString *)toDeletePath;
- (NSDictionary *)toDeleteParams;

- (NSDictionary *)toMoveToParams;

- (NSString *)toDetailPath;

- (NSString *)toActivityListPath;

- (NSString *)toHistoryListPath;

- (NSDictionary *)toShareParams;
@end

Web Proxy Viewer  |  New URL  |  Original Page