FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Coding-iOS/Coding_iOS/Models/ProjectLineNoteActivity.m at master · FuThD/Coding-iOS · GitHub
FuThD
/
Coding-iOS
Public
forked from
coding/Coding-iOS
Notifications
You must be signed in to change notification settings
Fork
1
Star
2
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
/
ProjectLineNoteActivity.m
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (27 loc) · 810 Bytes
Breadcrumbs
Coding-iOS
/
Coding_iOS
/
Models
/
ProjectLineNoteActivity.m
Copy path
File metadata and controls
30 lines (27 loc) · 810 Bytes
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
//
//
ProjectLineNoteActivity.m
//
Coding_iOS
//
//
Created by Ease on 15/5/15.
//
Copyright (c) 2015年 Coding. All rights reserved.
//
#
import
"
ProjectLineNoteActivity.h
"
@implementation
ProjectLineNoteActivity
- (
void
)
setContent
:
(
NSString
*)
content
{
if
(_content != content) {
_htmlMedia = [HtmlMedia
htmlMediaWithString:
content
showType:
MediaShowTypeImageAndMonkey];
_content = _htmlMedia.
contentDisplay
;
}
}
- (
NSString
*)
noteable_type
{
if
([_noteable_type
isEqualToString:
@"
Commit
"
]) {
return
@"
Commit
"
;
}
else
if
([_noteable_type
isEqualToString:
@"
MergeRequestBean
"
]) {
return
@"
MergeRequest
"
;
}
else
if
([_noteable_type
isEqualToString:
@"
PullRequestBean
"
]) {
return
@"
PullRequest
"
;
}
else
{
return
@"
(⊙_⊙)?
"
;
}
}
@end
Back
|
FazBrowse Home
|
New Git URL