-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathEACodeRelease.h
46 lines (33 loc) · 1.37 KB
/
EACodeRelease.h
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
//
// EACodeRelease.h
// Coding_iOS
//
// Created by Easeeeeeeeee on 2018/3/22.
// Copyright © 2018年 Coding. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "User.h"
#import "Commit.h"
#import "ResourceReference.h"
#import "Project.h"
@class EACodeReleaseAttachment;
@interface EACodeRelease : NSObject
@property (strong, nonatomic) NSNumber *id, *creator_id, *project_id, *iid, *pre, *draft;
@property (strong, nonatomic) NSString *tag_name, *commit_sha, *target_commitish, *title, *body, *markdownBody, *compare_tag_name;
@property (strong, nonatomic) NSDate *created_at;
@property (strong, nonatomic) User *author;
@property (strong, nonatomic) Commit *last_commit;
@property (strong, nonatomic) NSMutableArray *resource_references;//ResourceReferenceItem
@property (strong, nonatomic) NSMutableArray *attachments;//EACodeReleaseAttachment
@property (readwrite, nonatomic, strong) NSDictionary *propertyArrayMap;//指定数据类型的字典
@property (strong, nonatomic) Project *project;//需要自己填充的
@property (assign, nonatomic) CGFloat contentHeight;
@property (strong, nonatomic) NSString *editTitle, *editBody;//edit
- (BOOL)hasChanged;
- (NSString *)editPath;
- (NSDictionary *)editParams;
@end
@interface EACodeReleaseAttachment : NSObject
@property (strong, nonatomic) NSNumber *id, *size;
@property (strong, nonatomic) NSString *name;
@end