-
Notifications
You must be signed in to change notification settings - Fork 14
/
EveSellItemsWindow.cs
109 lines (93 loc) · 2.41 KB
/
EveSellItemsWindow.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
using EVE.ISXEVE.Extensions;
using LavishScriptAPI;
namespace EVE.ISXEVE
{
public class EveSellItemsWindow : EVEWindow
{
public EveSellItemsWindow(LavishScriptObject obj) : base(obj)
{
}
#region LavishScript Members
private int? _Duration;
public int Duration
{
get
{
if (_Duration == null)
_Duration = this.GetInt("Duration");
return _Duration.Value;
}
}
private int? _RemainingOrders;
public int RemainingOrders
{
get
{
if (_RemainingOrders == null)
_RemainingOrders = this.GetInt("RemainingOrders");
return _RemainingOrders.Value;
}
}
private int? _NumItems;
public int NumItems
{
get
{
if (_NumItems == null)
_NumItems = this.GetInt("NumItems");
return _NumItems.Value;
}
}
private string _BrokersFee;
public string BrokersFee
{
get { return _BrokersFee ?? (_BrokersFee = this.GetString("BrokersFee")); }
}
private string _TotalAmount;
public string TotalAmount
{
get { return _TotalAmount ?? (_TotalAmount = this.GetString("TotalAmount")); }
}
private string _SalesTax;
public string SalesTax
{
get { return _SalesTax ?? (_SalesTax = this.GetString("SalesTax")); }
}
/// <summary>
/// Wraps the Item member of the EveSellItemsWindow datatype.
/// </summary>
/// <param name="Index"># is between 1 and 'NumItems'</param>
/// <returns></returns>
public SellItem Item(int Index)
{
return new SellItem(GetMember("Item", Index.ToString(CultureInfo.CurrentCulture)));
}
#endregion
#region LavishScript Methods
/// <summary>
/// Wraps the SetDuration method of the EveSellItemsWindow datatype.
/// </summary>
/// <param name="duration">duration is the number of days for the order. Only use one of the following: 0,1,3,7,14,30,90</param>
/// <returns></returns>
public bool SetDuration(int duration)
{
Tracing.SendCallback("EveSellItemsWindow.SetDuration", duration);
return ExecuteMethod("SetDuration", duration.ToString(CultureInfo.CurrentCulture));
}
/// <summary>
/// Wraps the Sell method of the EveSellItemsWindow datatype.
/// </summary>
/// <returns></returns>
public bool Sell()
{
Tracing.SendCallback("EveSellItemsWindow.Sell");
return ExecuteMethod("Sell");
}
#endregion
}
}