-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathItemInfo.cs
More file actions
65 lines (57 loc) · 2.16 KB
/
ItemInfo.cs
File metadata and controls
65 lines (57 loc) · 2.16 KB
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
// -------------------------------------------------------------------------
// Copyright (c) Mecalc (Pty) Limited. All rights reserved.
// -------------------------------------------------------------------------
using System;
namespace QProtocol
{
/// <summary>
/// This class provides the basic information for most Item classes.
/// It can also be used with the /item/list/ endpoint to deserialize the response received to a List<ItemInfo>.
/// </summary>
[Serializable]
public class ItemInfo
{
/// <summary>
/// Gets or sets the Item ID number for this node.
/// </summary>
public int ItemId { get; set; }
/// <summary>
/// Gets or sets the Item's generic Name.
/// </summary>
public string ItemName { get; set; }
/// <summary>
/// Gets or sets the Item's name identifier.
/// </summary>
public int ItemNameIdentifier { get; set; }
/// <summary>
/// Gets or sets the item type.
/// </summary>
public string ItemType { get; set; }
/// <summary>
/// Gets or sets the Item's type identifier.
/// </summary>
public int ItemTypeIdentifier { get; set; }
/// <summary>
/// Creates a new instance of the <see cref="ItemInfo"/> class.
/// </summary>
public ItemInfo()
{
}
/// <summary>
/// Creates a new instance of the <see cref="ItemInfo"/> class.
/// </summary>
/// <param name="itemId">The Item unique ID.</param>
/// <param name="itemName">The Item Name.</param>
/// <param name="itemNameIdentifier">The Item Name's unique ID.</param>
/// <param name="itemType">The Item's Type.</param>
/// <param name="itemTypeIdentifier">The Item Type unique ID.</param>
public ItemInfo(int itemId, string itemName, int itemNameIdentifier, string itemType, int itemTypeIdentifier)
{
ItemId = itemId;
ItemName = itemName;
ItemNameIdentifier = itemNameIdentifier;
ItemType = itemType;
ItemTypeIdentifier = itemTypeIdentifier;
}
}
}