FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Coding-iOS/Coding_iOS/Models/CodeFile.h at master · Dacredible/Coding-iOS · GitHub
Dacredible
/
Coding-iOS
Public
forked from
coding/Coding-iOS
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Coding-iOS
/
Coding_iOS
/
Models
/
CodeFile.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
36 lines (29 loc) · 1.3 KB
Breadcrumbs
Coding-iOS
/
Coding_iOS
/
Models
/
CodeFile.h
Copy path
File metadata and controls
executable file
·
36 lines (29 loc) · 1.3 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
//
CodeFile.h
//
Coding_iOS
//
//
Created by 王 原闯 on 14/10/29.
//
Copyright (c) 2014年 Coding. All rights reserved.
//
#
import
<
Foundation/Foundation.h
>
#
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, *editName;
+ (CodeFile *)
codeFileWithRef
:
(
NSString
*)
ref
andPath
:
(
NSString
*)
path
;
+ (CodeFile *)
codeFileWithMDStr
:
(
NSString
*)
md_html
;
+ (CodeFile *)
codeFileToCommitWithRef
:
(
NSString
*)
ref
andPath
:
(
NSString
*)
path
name
:
(
NSString
*)
name
data
:
(
NSString
*)
data
message
:
(
NSString
*)
message
headCommit
:
(Commit *)
headCommit
;
- (
NSDictionary
*)
toEditParams
;
- (
NSDictionary
*)
toCreateParams
;
@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
Back
|
FazBrowse Home
|
New Git URL