<인벤토리> 저장, 불러오기 기능

C#/과제 2019. 4. 8. 01:09



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace TheLastInventory
{
    class Program
    {
        static void Main(string[] args)
        {
            new App().Start();
 
            Console.ReadKey();
        }
    }
}
 
cs

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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
 
using Newtonsoft.Json;
 
namespace TheLastInventory
{
    public class App
    {
        public InventoryInfo inventoryInfo;
        public Inventory inventory;
 
        public Dictionary<int, ItemData> dicItemData = new Dictionary<int, ItemData>();//아이템 데이타 불러오기
 
        public App()
        {
            //아이템 데이터 가져오기
            DataLoad("./data/item_data.json");
        }
 
        public void Start()
        {
            //폴더 유무 확인
            //유:기존유저:파일읽기,역직렬화,사전에데이터올리기
            //무:신규유져:파일생성(inventory_info), 파일읽기,역직렬화,사전에데이터올리기
            ExistTest();
 
            //게임런쳐 호출
            var newInventoryInfo = new GameLauncher(this.dicItemData, this.inventoryInfo, this.inventory).StartGame();
            //종료했으므로 저장
            DataSave(newInventoryInfo);
        }
 
        public void ExistTest()
        {
            if (Directory.Exists("./info"))
            {
                Console.WriteLine("기존 유저입니다.");
 
                //여기서부턴 신규유저에 붙여 넣을 것
                //파일읽기, 역직렬화, dic생성
                var json = File.ReadAllText("./info/inventory_info.json");
 
                var inventoryInfo = JsonConvert.DeserializeObject<InventoryInfo>(json);
                this.inventoryInfo = inventoryInfo;
 
                this.inventory = new Inventory(inventoryInfo);
            }
            else
            {
                Console.WriteLine("신규 유저입니다.");
 
                //폴더 만들기
                Directory.CreateDirectory("./info");
                //인벤토리 생성하기  
                this.inventory = new Inventory(new InventoryInfo());
                //직렬화 
                var json = JsonConvert.SerializeObject(this.inventory);
                File.WriteAllText("./info/inventory_info.json", json, Encoding.UTF8);
 
                //파일읽기, 역직렬화, dic생성
                json = File.ReadAllText("./info/inventory_info.json");
 
                var inventoryInfo = JsonConvert.DeserializeObject<InventoryInfo>(json);
                this.inventoryInfo = inventoryInfo;
 
                this.inventory = new Inventory(inventoryInfo);
            }
        }
 
        public void DataLoad(string path)//데이터 불러오기
        {
            var json = File.ReadAllText(path);
            //Console.WriteLine("쮀이썬테스트:{0}",json);
 
            //역직렬화
            var arrItemData = JsonConvert.DeserializeObject<ItemData[]>(json);
            foreach (var data in arrItemData)
            {
                dicItemData.Add(data.id, data);
            }
        }
 
        public void DataSave(InventoryInfo newInventoryInfo)
        {
            this.inventoryInfo = newInventoryInfo;
            var json = JsonConvert.SerializeObject(this.inventoryInfo);
            File.WriteAllText("./info/inventory_info.json", json, Encoding.UTF8);
        }
    }
}
 
cs


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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace TheLastInventory
{
    public class GameLauncher
    {
        Dictionary<int, ItemData> dicItemData;
        public InventoryInfo inventoryInfo;
        public Inventory inventory;
 
        public GameLauncher(Dictionary<int, ItemData>dicItemData,InventoryInfo inventoryInfo, Inventory inventory)
        {
            this.dicItemData = dicItemData;
            this.inventoryInfo = inventoryInfo;
            this.inventory = inventory;
        }
 
        public InventoryInfo StartGame()
        {
            //var inventory = new Inventory();
 
            
            //메뉴 [1:아이템생성 과 인벤추가 ,2:인벤목록출력 ,3: 아이템꺼내기 ,4:저장후 종료] : 1
            while (true)
            {
                Console.WriteLine("메뉴[1.목록출력/2.아이템생성/3.아이템버리기/0.저장후 종료({0}/{1})"this.inventoryInfo.inventoryVolume, this.inventory.inventoryVolumeMax);
                var input = Console.ReadLine();
 
                if (input == "0")
                {
                    //저장기능만들기
                    Console.WriteLine("종료합니다.");
                    return this.inventoryInfo;
                }
                else if (input == "1")
                {
                    //목록 출력
                    inventory.ViewList(dicItemData);
                }
                else if (input == "2")
                {
                    //아이템 생성
                    this.inventoryInfo = inventory.AddItem(dicItemData);
                }
                else if (input == "3")
                {
                    //아이템 버리기
                    this.inventoryInfo = inventory.RemoveItem(dicItemData);
                }
                else
                {
                    Console.WriteLine("잘못된 입력입니다.");
                }
            }
        }
    }
}
 
cs



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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace TheLastInventory
{
    public class Inventory
    {
        public InventoryInfo inventoryInfo;
        public int inventoryVolumeMax = 100;
 
        public Inventory(InventoryInfo inventoryInfo)
        {
            this.inventoryInfo = inventoryInfo;
        }
 
        public InventoryInfo AddItem(Dictionary<int, ItemData> dic)//아이템 추가
        {
            Console.WriteLine("어떤 아이템을 만드시겠습니까?[1.롱소드/2.숏소드/3.빨간포션/4.파란포션](이름):");
            var input = Console.ReadLine();
            if (input == "롱소드")
            {
                //롱소드 생성
                Console.WriteLine("몇개의 {0}를 만드시겠습니까?", input);
                var inputNum = Console.ReadLine();
                if (int.Parse(inputNum) + this.inventoryInfo.inventoryVolume > this.inventoryVolumeMax - this.inventoryInfo.inventoryVolume)
                {
                    Console.WriteLine("남은 아이템 수용량을 초과합니다.");
                }
                else
                {
                    if (int.Parse(inputNum) >= 0)
                    {
                        Item founditem = null;
                        int i = 0;
 
                        foreach (var data in this.inventoryInfo.items)
                        {
                            if (data.itemInfo.id == 0)
                            {
                                founditem = data;
                                break;
                            }
                            i++;
                        }
                        if (founditem == null)
                        {
                            //아이템 객체 생성하고 카운트업
                            this.inventoryInfo.items.Add(new Item(new ItemInfo(0)));
                            for (int j = 0; j < int.Parse(inputNum); j++)
                            {
                                this.inventoryInfo.items[i].itemInfo.stack++;
                                this.inventoryInfo.inventoryVolume++;
                            }
                        }
                        else
                        {
                            //카운트만 업
                            for (int j = 0; j < int.Parse(inputNum); j++)
                            {
                                this.inventoryInfo.items[i].itemInfo.stack++;
                                this.inventoryInfo.inventoryVolume++;
                            }
                        }
                        Console.WriteLine("{0}가 {1}개 추가되었습니다.", input, inputNum);
                    }
                    else
                    {
                        Console.WriteLine("잘못된 입력 입니다.");
                    }
                }
            }
            else if (input == "숏소드")
            {
                Console.WriteLine("몇개의 {0}를 만드시겠습니까?", input);
                var inputNum = Console.ReadLine();
                if (int.Parse(inputNum) + this.inventoryInfo.inventoryVolume > this.inventoryVolumeMax - this.inventoryInfo.inventoryVolume)
                {
                    Console.WriteLine("남은 아이템 수용량을 초과합니다.");
                }
                else
                {
                    if (int.Parse(inputNum) >= 0)
                    {
                        Item founditem = null;
                        int i = 0;
                        foreach (var data in this.inventoryInfo.items)
                        {
                            if (data.itemInfo.id == 1)
                            {
                                founditem = data;
                                break;
                            }
                            i++;
                        }
                        if (founditem == null)
                        {
                            //아이템 객체 생성하고 카운트업
                            this.inventoryInfo.items.Add(new Item(new ItemInfo(1)));
                            for (int j = 0; j < int.Parse(inputNum); j++)
                            {
                                this.inventoryInfo.items[i].itemInfo.stack++;
                                this.inventoryInfo.inventoryVolume++;
                            }
                        }
                        else
                        {
                            //카운트만 업
                            for (int j = 0; j < int.Parse(inputNum); j++)
                            {
                                this.inventoryInfo.items[i].itemInfo.stack++;
                                this.inventoryInfo.inventoryVolume++;
                            }
                        }
                        Console.WriteLine("{0}가 {1}개 추가되었습니다.", input, inputNum);
                    }
                    else
                    {
                        Console.WriteLine("잘못된 입력 입니다.");
                    }
                }
            }
            else if (input == "빨간포션")
            {
                Console.WriteLine("몇개의 {0}를 만드시겠습니까?", input);
                var inputNum = Console.ReadLine();
                if (int.Parse(inputNum) + this.inventoryInfo.inventoryVolume > this.inventoryVolumeMax - this.inventoryInfo.inventoryVolume)
                {
                    Console.WriteLine("남은 아이템 수용량을 초과합니다.");
                }
                else
                {
                    if (int.Parse(inputNum) >= 0)
                    {
                        Item founditem = null;
                        int i = 0;
                        foreach (var data in this.inventoryInfo.items)
                        {
                            if (data.itemInfo.id == 2)
                            {
                                founditem = data;
                                break;
                            }
                            i++;
                        }
                        if (founditem == null)
                        {
                            //아이템 객체 생성하고 카운트업
                            this.inventoryInfo.items.Add(new Item(new ItemInfo(2)));
                            for (int j = 0; j < int.Parse(inputNum); j++)
                            {
                                this.inventoryInfo.items[i].itemInfo.stack++;
                                this.inventoryInfo.inventoryVolume++;
                            }
                        }
                        else
                        {
                            //카운트만 업
                            for (int j = 0; j < int.Parse(inputNum); j++)
                            {
                                this.inventoryInfo.items[i].itemInfo.stack++;
                                this.inventoryInfo.inventoryVolume++;
                            }
                        }
                        Console.WriteLine("{0}가 {1}개 추가되었습니다.", input, inputNum);
                    }
                    else
                    {
                        Console.WriteLine("잘못된 입력 입니다.");
                    }
                }
            }
            else if (input == "파란포션")
            {
                Console.WriteLine("몇개의 {0}를 만드시겠습니까?", input);
                var inputNum = Console.ReadLine();
                if (int.Parse(inputNum) + this.inventoryInfo.inventoryVolume > this.inventoryVolumeMax - this.inventoryInfo.inventoryVolume)
                {
                    Console.WriteLine("남은 아이템 수용량을 초과합니다.");
                }
                else
                {
                    if (int.Parse(inputNum) >= 0)
                    {
                        Item founditem = null;
                        int i = 0;
                        foreach (var data in this.inventoryInfo.items)
                        {
                            if (data.itemInfo.id == 3)
                            {
                                founditem = data;
                                break;
                            }
                            i++;
                        }
                        if (founditem == null)
                        {
                            //아이템 객체 생성하고 카운트업
                            this.inventoryInfo.items.Add(new Item(new ItemInfo(3)));
                            for (int j = 0; j < int.Parse(inputNum); j++)
                            {
                                this.inventoryInfo.items[i].itemInfo.stack++;
                                this.inventoryInfo.inventoryVolume++;
                            }
                        }
                        else
                        {
                            //카운트만 업
                            for (int j = 0; j < int.Parse(inputNum); j++)
                            {
                                this.inventoryInfo.items[i].itemInfo.stack++;
                                this.inventoryInfo.inventoryVolume++;
                            }
                        }
                        Console.WriteLine("{0}가 {1}개 추가되었습니다.", input, inputNum);
                    }
                    else
                    {
                        Console.WriteLine("잘못된 입력 입니다.");
                    }
                }
            }
            else
            {
                Console.WriteLine("잘못된 입력입니다.");
            }
            return this.inventoryInfo;
        }
 
        public InventoryInfo RemoveItem(Dictionary<int, ItemData> dic)//아이템 지우기
        {
            if (this.inventoryInfo.inventoryVolume == 0)
            {
                Console.WriteLine("가방이 비었습니다.");
            }
            else
            {
                Console.WriteLine("어떤 아이템을 버리시겠습니까?[1.롱소드/2.숏소드/3.빨간포션/4.파란포션](이름):");
                var input = Console.ReadLine();
 
                if (input == "롱소드")
                {
                    Item founditem = null;
                    int i = 0;
                    foreach (var data in this.inventoryInfo.items)
                    {
                        if (data.itemInfo.id == 0)
                        {
                            founditem = data;
                            break;
                        }
                        i++;
                    }
                    if (founditem == null)//해당 아이템의 갯수가 0이면 해당 아이템이 없습니다. 출력
                    {
                        Console.WriteLine("해당 아이템이 가방에 없습니다.");
                    }
                    else
                    {
                        Console.WriteLine("{0} : {1}", dic[this.inventoryInfo.items[i].itemInfo.id].name, this.inventoryInfo.items[i].itemInfo.stack);
                        Console.Write("몇개나 버리시겠습니까?(숫자입력) : ");
                        var inputNum = Console.ReadLine();
                        if (int.Parse(inputNum) >= this.inventoryInfo.items[i].itemInfo.stack)
                        {
                            Console.WriteLine("{0}을 전부 버립니다.", dic[0].name);
                            this.inventoryInfo.inventoryVolume -= this.inventoryInfo.items[i].itemInfo.stack;
                            this.inventoryInfo.items[i].itemInfo.stack = 0;
                            this.inventoryInfo.items.Remove(founditem);
                        }
                        else
                        {
                            for (int j = 0; j < int.Parse(inputNum); j++)
                            {
                                this.inventoryInfo.items[i].itemInfo.stack--;
                                this.inventoryInfo.inventoryVolume--;
                            }
                            Console.WriteLine("{0}을 {1}개 버렸습니다.", dic[0].name, inputNum);
                        }
                    }
                }
                else if (input == "숏소드")
                {
                    Item founditem = null;
                    int i = 0;
                    foreach (var data in this.inventoryInfo.items)
                    {
                        if (data.itemInfo.id == 1)
                        {
                            founditem = data;
                            break;
                        }
                        i++;
                    }
                    if (founditem == null)//해당 아이템의 갯수가 0이면 해당 아이템이 없습니다. 출력
                    {
                        Console.WriteLine("해당 아이템이 가방에 없습니다.");
                    }
                    else
                    {
                        Console.WriteLine("{0} : {1}", dic[1].name, this.inventoryInfo.items[i].itemInfo.stack);
                        Console.Write("몇개나 버리시겠습니까?(숫자입력) : ");
                        var inputNum = Console.ReadLine();
                        if (int.Parse(inputNum) >= this.inventoryInfo.items[i].itemInfo.stack)
                        {
                            Console.WriteLine("{0}을 전부 버립니다.", dic[1].name);
                            this.inventoryInfo.inventoryVolume -= this.inventoryInfo.items[i].itemInfo.stack;
                            this.inventoryInfo.items[i].itemInfo.stack = 0;
                            this.inventoryInfo.items.Remove(founditem);
                        }
                        else
                        {
                            for (int j = 0; j < int.Parse(inputNum); j++)
                            {
                                this.inventoryInfo.items[i].itemInfo.stack--;
                                this.inventoryInfo.inventoryVolume--;
                            }
                            Console.WriteLine("{0}을 {1}개 버렸습니다.", dic[1].name, inputNum);
                        }
                    }
                }
                else if (input == "빨간포션")
                {
                    Item founditem = null;
                    int i = 0;
                    foreach (var data in this.inventoryInfo.items)
                    {
                        if (data.itemInfo.id == 2)
                        {
                            founditem = data;
                            break;
                        }
                        i++;
                    }
                    if (founditem == null)//해당 아이템의 갯수가 0이면 해당 아이템이 없습니다. 출력
                    {
                        Console.WriteLine("해당 아이템이 가방에 없습니다.");
                    }
                    else
                    {
                        Console.WriteLine("{0} : {1}", dic[2].name, this.inventoryInfo.items[i].itemInfo.stack);
                        Console.Write("몇개나 버리시겠습니까?(숫자입력) : ");
                        var inputNum = Console.ReadLine();
                        if (int.Parse(inputNum) >= this.inventoryInfo.items[i].itemInfo.stack)
                        {
                            Console.WriteLine("{0}을 전부 버립니다.", dic[2].name);
                            this.inventoryInfo.inventoryVolume -= this.inventoryInfo.items[i].itemInfo.stack;
                            this.inventoryInfo.items[i].itemInfo.stack = 0;
                            this.inventoryInfo.items.Remove(founditem);
                        }
                        else
                        {
                            for (int j = 0; j < int.Parse(inputNum); j++)
                            {
                                this.inventoryInfo.items[i].itemInfo.stack--;
                                this.inventoryInfo.inventoryVolume--;
                            }
                            Console.WriteLine("{0}을 {1}개 버렸습니다.", dic[2].name, inputNum);
                        }
                    }
                }
                else if (input == "파란포션")
                {
                    Item founditem = null;
                    int i = 0;
                    foreach (var data in this.inventoryInfo.items)
                    {
                        if (data.itemInfo.id == 3)
                        {
                            founditem = data;
                            break;
                        }
                        i++;
                    }
                    if (founditem == null)//해당 아이템의 갯수가 0이면 해당 아이템이 없습니다. 출력
                    {
                        Console.WriteLine("해당 아이템이 가방에 없습니다.");
                    }
                    else
                    {
                        Console.WriteLine("{0} : {1}", dic[3].name, this.inventoryInfo.items[i].itemInfo.stack);
                        Console.Write("몇개나 버리시겠습니까?(숫자입력) : ");
                        var inputNum = Console.ReadLine();
                        if (int.Parse(inputNum) >= this.inventoryInfo.items[i].itemInfo.stack)
                        {
                            Console.WriteLine("{0}을 전부 버립니다.", dic[3].name);
                            this.inventoryInfo.inventoryVolume -= this.inventoryInfo.items[i].itemInfo.stack;
                            this.inventoryInfo.items[i].itemInfo.stack = 0;
                            this.inventoryInfo.items.Remove(founditem);
                        }
                        else
                        {
                            for (int j = 0; j < int.Parse(inputNum); j++)
                            {
                                this.inventoryInfo.items[i].itemInfo.stack--;
                                this.inventoryInfo.inventoryVolume--;
                            }
                            Console.WriteLine("{0}을 {1}개 버렸습니다.", dic[3].name, inputNum);
                        }
                    }
                }
                else
                {
                    Console.WriteLine("잘못된 입력입니다.");
                }
            }
            return this.inventoryInfo;
        }
 
        public void ViewList(Dictionary<int, ItemData> dic)//목록보기
        {
            //if (this.inventoryInfo.items.Count <= 0)
            //{
            //    Console.WriteLine("인벤토리가 비었습니다.");
            //}
            if(this.inventoryInfo.inventoryVolume<=0)
            {
                Console.WriteLine("인벤토리가 비었습니다.");
            }
            else
            {
                Console.WriteLine("인벤토리를 확인합니다.({0}/{1})"this.inventoryInfo.inventoryVolume, this.inventoryVolumeMax);
                int i = 0;
                foreach (Item item in this.inventoryInfo.items)
                {
                    Console.WriteLine("{0} : {1}", dic[item.itemInfo.id].name, this.inventoryInfo.items[i].itemInfo.stack);
                    i++;
                }
            }
        }
    }
}
 
cs



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace TheLastInventory
{   
    public class InventoryInfo
    {
        public int id;
        public List<Item> items = new List<Item>();
        public int inventoryVolume = 0;
    }
}
 
cs



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace TheLastInventory
{
    public class Item
    {
        public int id;
        public ItemInfo itemInfo;
 
        public Item(ItemInfo itemInfo)
        {
            this.itemInfo = itemInfo;
        }
    }
}
 
cs


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace TheLastInventory
{
    public class ItemData
    {
        public int id;
        public string name;
 
        public ItemData(int id, string name)
        {
            this.id = id;
            this.name = name;
        }
    }
}
 
cs

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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace TheLastInventory
{
    public class ItemInfo
    {
        public int id;
        public int stack;
 
        public ItemInfo()
        {
            //기본생성자
        }
 
        public ItemInfo(int id)
        {
            //아이템의 아이디와 이름을 받는 생성자
            this.id = id;
        }
    }
}
 
cs

item_data.json

[

  {

    "id": "0",

    "name": "롱소드"

  },

  {

    "id": "1",

    "name": "숏소드"

  },

  {

    "id": "2",

    "name": "빨간포션"

  },

  {

    "id": "3",

    "name": "파란포션"

  }

]


inventory_info.json
{"id":0,"items":[{"id":0,"itemInfo":{"id":0,"stack":3}},{"id":0,"itemInfo":{"id":1,"stack":30}},{"id":0,"itemInfo":{"id":2,"stack":3}}],"inventoryVolume":36}

: