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

//
//  CodeFile.h
//  Coding_iOS
//
//  Created by   on 14/10/29.
//  Copyright (c) 2014 Coding. All rights reserved.
//

#import 
#import "Commit.h"

@class CodeFile_RealFile;

@interface CodeFile : NSObject
@property (nonatomic, assign) BOOL can_edit, isHead;
@property (readwrite, nonatomic, strong) NSString *ref, *path;
@property (readwrite, nonatomic, strong) CodeFile_RealFile *file;
@property (strong, nonatomic) Commit *headCommit;
@property (strong, nonatomic) NSString *editData, *editMessage;

+ (CodeFile *)codeFileWithRef:(NSString *)ref andPath:(NSString *)path;
+ (CodeFile *)codeFileWithMDStr:(NSString *)md_html;
- (NSDictionary *)toEditParams;
@end


@interface CodeFile_RealFile : NSObject
@property (readwrite, nonatomic, strong) NSString *data, *lang, *lastCommitId, *lastCommitMessage, *mode, *name, *path, *preview;
@property (readwrite, nonatomic, strong) NSDate *lastCommitDate;
@property (readwrite, nonatomic, strong) Committer *lastCommitter;
@property (nonatomic, assign) BOOL previewed;
@property (nonatomic, assign) NSInteger size;
@end

Web Proxy Viewer  |  New URL  |  Original Page