-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrade.cs
173 lines (153 loc) · 5.44 KB
/
Trade.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
using System;
using LavishScriptAPI;
namespace Vanguard.ISXVG
{
/// <summary>
///
/// </summary>
public class Trade : LavishScriptObject
{
/// <summary>
/// Initializes a new instance of the <see cref="Trade"/> class.
/// </summary>
/// <param name="Obj">The obj.</param>
public Trade(LavishScriptObject Obj)
: base(Obj) {}
/// <summary>
/// Initializes a new instance of the <see cref="Trade"/> class.
/// </summary>
public Trade()
: base(LavishScript.Objects.GetObject("Trade")) {}
/// <summary>
/// Gets the state of this <see cref="Trade"/>.
/// </summary>
/// <value>The state.</value>
public string State { get { return GetMember<string>("State"); } }
/// <summary>
/// Gets the trader of this <see cref="Trade"/>.
/// </summary>
/// <value>The trader.</value>
public string Trader { get { return GetMember<string>("Trader"); } }
/// <summary>
/// Gets my coin offer of this <see cref="Trade"/>.
/// </summary>
/// <value>My coin offer.</value>
public Int64 MyCoinOffer { get { return GetMember<Int64>("MyCoinOffer"); } }
/// <summary>
/// Gets the other coin offer of this <see cref="Trade"/>.
/// </summary>
/// <value>The other coin offer.</value>
public Int64 OtherCoinOffer { get { return GetMember<Int64>("OtherCoinOffer"); } }
/// <summary>
/// Gets my offer count of this <see cref="Trade"/>.
/// </summary>
/// <value>My offer count.</value>
public int MyOfferCount { get { return GetMember<int>("MyOffer"); } }
/// <summary>
/// Gets the other offer count of this <see cref="Trade"/>.
/// </summary>
/// <value>The other offer count.</value>
public int OtherOfferCount { get { return GetMember<int>("OtherOffer"); } }
/// <summary>
/// Gets a value indicating whether [I accepted offer].
/// </summary>
/// <value><c>true</c> if [I accepted offer]; otherwise, <c>false</c>.</value>
public bool IAcceptedOffer { get { return GetMember<bool>("IAcceptedOffer"); } }
/// <summary>
/// Gets a value indicating whether [other accepted offer].
/// </summary>
/// <value><c>true</c> if [other accepted offer]; otherwise, <c>false</c>.</value>
public bool OtherAcceptedOffer { get { return GetMember<bool>("OtherAcceptedOffer"); } }
/// <summary>
/// Mies the offer.
/// </summary>
/// <param name="Qty">The qty.</param>
/// <returns></returns>
public Item MyOffer(int Qty)
{
LavishScriptObject Obj = GetMember("MyOffer", Qty.ToString());
return new Item(Obj);
}
/// <summary>
/// Mies the offer.
/// </summary>
/// <param name="Name">The name.</param>
/// <returns></returns>
public Item MyOffer(string Name)
{
LavishScriptObject Obj = GetMember("MyOffer", Name);
return new Item(Obj);
}
/// <summary>
/// Others the offer.
/// </summary>
/// <param name="Qty">The qty.</param>
/// <returns></returns>
public Item OtherOffer(int Qty)
{
LavishScriptObject Obj = GetMember("OtherOffer", Qty.ToString());
return new Item(Obj);
}
/// <summary>
/// Others the offer.
/// </summary>
/// <param name="Name">The name.</param>
/// <returns></returns>
public Item OtherOffer(string Name)
{
LavishScriptObject Obj = GetMember("OtherOffer", Name);
return new Item(Obj);
}
/// <summary>
/// Accepts the invite.
/// </summary>
/// <returns></returns>
public bool AcceptInvite()
{
return ExecuteMethod("AcceptInvite");
}
/// <summary>
/// Accepts the offer.
/// </summary>
/// <returns></returns>
public bool AcceptOffer()
{
return ExecuteMethod("AcceptOffer");
}
/// <summary>
/// Declines the invite.
/// </summary>
/// <returns></returns>
public bool DeclineInvite()
{
return ExecuteMethod("DeclineInvite");
}
/// <summary>
/// Cancels this <see cref="Trade"/>.
/// </summary>
/// <returns></returns>
public bool Cancel()
{
return ExecuteMethod("Cancel");
}
/// <summary>
/// Removes the item.
/// </summary>
/// <param name="Handle">The handle.</param>
/// <returns></returns>
public bool RemoveItem(int Handle)
{
return ExecuteMethod("RemoveItem", Handle.ToString());
}
/// <summary>
/// Removes the item.
/// </summary>
/// <param name="Handle">The handle.</param>
/// <param name="Qty">The qty.</param>
/// <returns></returns>
public bool RemoveItem(int Handle, int Qty)
{
return ExecuteMethod("RemoveItem", Handle.ToString(), Qty.ToString());
}
}
}