-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGJItem.h
37 lines (31 loc) · 943 Bytes
/
GJItem.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
//
// GJItem.h
// GJItem
//
// Created by 郭健 on 16/1/10.
// Copyright © 2016年 gj. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface GJItem : NSObject <NSCoding>{
NSString *_itemName;
NSString *_serialNumber;
int _valueInDollars;
NSDate *_dateCreated;
}
@property (nonatomic, copy) NSString *itemKey;
@property (nonatomic, strong) UIImage *thumbnail;
+ (instancetype) randomItem;
//指定初始化方法
- (instancetype) initWithItemName:(NSString *)name serialNumber:(NSString *) sNumber valueInDollars:(int) value;
- (instancetype) initWithItemName:(NSString *)name;
- (instancetype) init;
- (void) setItemName:(NSString *) str;
- (NSString *) itemName;
- (void) setSerialNumber:(NSString *) str;
- (NSString *) serialNumber;
- (void) setValueInDollars:(int) v;
- (int) valueInDollars;
- (NSDate *) dateCreated;
- (void) setThumbnailFromImage:(UIImage *)image;
@end