| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ad05092 commit d76bd80
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ | |||
| 13 | 13 | @interface CodingTip : NSObject | |
| 14 | 14 | ||
| 15 | 15 | @property (readwrite, nonatomic, strong) NSNumber *status; | |
| 16 | - @property (strong, nonatomic) NSNumber *id, *owner_id, *target_id, *type; | ||
| 16 | + @property (strong, nonatomic) NSNumber *id; | ||
| 17 | 17 | @property (readwrite, nonatomic, strong) NSDate *created_at; | |
| 18 | 18 | @property (readwrite, nonatomic, strong) NSString *content, *target_type; | |
| 19 | 19 | @property (readwrite, nonatomic, strong) HtmlMedia *htmlMedia; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,14 @@ | |||
| 11 | 11 | ||
| 12 | 12 | @implementation CodingTip | |
| 13 | 13 | ||
| 14 | + - (void)setId:(NSNumber *)id{ | ||
| 15 | + if ([id isKindOfClass:[NSString class]]){ | ||
| 16 | + _id = @([(NSString *)id integerValue]); | ||
| 17 | + }else{ | ||
| 18 | + _id = id; | ||
| 19 | + } | ||
| 20 | + } | ||
| 21 | + | ||
| 14 | 22 | - (void)setContent:(NSString *)content{ | |
| 15 | 23 | if (_content != content) { | |
| 16 | 24 | _htmlMedia = [HtmlMedia htmlMediaWithString:content showType:MediaShowTypeImageAndMonkey]; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments