OSDN Git Service

UIを調整
[kcd/KCD.git] / KCD / HMCreateSlotItemCommand.m
1 //
2 //  HMCreateSlotItemCommand.m
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2014/03/22.
6 //  Copyright (c) 2014年 Hori,Masaki. All rights reserved.
7 //
8
9 #import "HMCreateSlotItemCommand.h"
10
11 #import "HMMemberMaterialCommand.h"
12 #import "HMUpdateSlotItemCommand.h"
13 #import "HMStoreCreateSlotItemHistoryCommand.h"
14
15
16 @implementation HMCreateSlotItemCommand
17 + (void)load
18 {
19         static dispatch_once_t onceToken;
20         dispatch_once(&onceToken, ^{
21                 [HMJSONCommand registerClass:self];
22         });
23 }
24
25 + (BOOL)canExcuteAPI:(NSString *)api
26 {
27         if([api isEqualToString:@"/kcsapi/api_req_kousyou/createitem"]) return YES;
28         
29         return NO;
30 }
31 - (id)init
32 {
33         self = [super initWithCommands:
34                         [HMMemberMaterialCommand new],
35                         [HMUpdateSlotItemCommand new],
36                         [HMStoreCreateSlotItemHistoryCommand new],
37                         nil];
38         return self;
39 }
40 - (void)execute
41 {
42         [NSThread sleepForTimeInterval:6.5];
43         [super execute];
44 }
45 @end