FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Coding-iOS/Coding_iOS/Models/Project.h at master · strogo/Coding-iOS · GitHub
strogo
/
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
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Coding-iOS
/
Coding_iOS
/
Models
/
Project.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
58 lines (41 loc) · 2.04 KB
Breadcrumbs
Coding-iOS
/
Coding_iOS
/
Models
/
Project.h
Copy path
File metadata and controls
58 lines (41 loc) · 2.04 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
//
Project.h
//
Coding_iOS
//
//
Created by Ease on 15/4/23.
//
Copyright (c) 2015年 Coding. All rights reserved.
//
#
import
<
Foundation/Foundation.h
>
#
import
<
ObjectiveGit/ObjectiveGit.h
>
//
https://github.com/libgit2/objective-git
@interface
Project
:
NSObject
@property
(
readwrite
,
nonatomic
,
strong
)
NSString
*icon, *name, *owner_user_name, *backend_project_path, *full_name, *description_mine, *path, *parent_depot_path, *current_user_role,*project_path;
@property
(
readwrite
,
nonatomic
,
strong
)
NSNumber
*
id
, *owner_id, *is_public, *un_read_activities_count, *done, *processing, *star_count, *stared, *watch_count, *watched, *fork_count, *forked, *recommended, *pin, *current_user_role_id, *type, *gitReadmeEnabled, *max_member;
@property
(
assign
,
nonatomic
)
BOOL
isStaring, isWatching, isLoadingMember, isLoadingDetail;
@property
(
strong
,
nonatomic
) User *owner;
@property
(
strong
,
nonatomic
)
NSDate
*created_at,*updated_at;
@property
(
strong
,
nonatomic
)
NSNumber
*board_id;
//
目前一个项目,只有一个看板。。从看板列表接口得到
@property
(
assign
,
nonatomic
)
BOOL
hasEverHandledBoard;
+ (Project *)
project_All
;
+ (Project *)
project_FeedBack
;
- (
NSString
*)
toProjectPath
;
- (
NSDictionary
*)
toCreateParams
;
- (
NSString
*)
toUpdatePath
;
- (
NSDictionary
*)
toUpdateParams
;
- (
NSString
*)
toUpdateIconPath
;
- (
NSString
*)
toDeletePath
;
- (
NSString
*)
toArchivePath
;
- (
NSString
*)
toMembersPath
;
- (
NSDictionary
*)
toMembersParams
;
- (
NSString
*)
toUpdateVisitPath
;
- (
NSString
*)
toDetailPath
;
- (
NSString
*)
localMembersPath
;
- (
NSString
*)
toBranchOrTagPath
:
(
NSString
*)
path
;
#
pragma mark
Git
- (
NSURL
*)
remoteURL
;
- (
NSURL
*)
localURL
;
- (
BOOL
)
isLocalRepoExist
;
- (
BOOL
)
deleteLocalRepo
;
- (GTRepository *)
localRepo
;
- (
void
)
gitCloneBlock
:
(
void
(^)(GTRepository *repo,
NSError
*error))
handleBlock
progressBlock
:
(
void
(^)(
const
git_transfer_progress *progress,
BOOL
*stop))
progressBlock
;
- (
void
)
gitPullBlock
:
(
void
(^)(
BOOL
result,
NSString
*tipStr))
handleBlock
progressBlock
:
(
void
(^)(
const
git_transfer_progress *progress,
BOOL
*stop))
progressBlock
;
@end
Back
|
FazBrowse Home
|
New Git URL