-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMailMessage.cs
114 lines (100 loc) · 3.58 KB
/
MailMessage.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
using LavishScriptAPI;
namespace Vanguard.ISXVG
{
/// <summary>
/// This DataType includes all of the data available to ISXVG that is related to a mail message.
/// </summary>
public class MailMessage : LavishScriptObject
{
/// <summary>
/// Initializes a new instance of the <see cref="MailMessage"/> class.
/// </summary>
/// <param name="Obj">The obj.</param>
public MailMessage(LavishScriptObject Obj) : base(Obj) {}
/// <summary>
/// Initializes a new instance of the <see cref="MailMessage"/> class.
/// </summary>
/// <param name="Arg">The arg.</param>
public MailMessage(string Arg) : base(LavishScript.Objects.GetObject("MailMessage", Arg)) {}
/// <summary>
/// Gets from of this <see cref="MailMessage"/>.
/// </summary>
/// <value>From.</value>
public string From { get { return GetMember<string>("From"); } }
/// <summary>
/// Gets the subject of this <see cref="MailMessage"/>.
/// </summary>
/// <value>The subject.</value>
public string Subject { get { return GetMember<string>("Subject"); } }
/// <summary>
/// Gets the body of this <see cref="MailMessage"/>.
/// </summary>
/// <value>The body.</value>
public string Body { get { return GetMember<string>("Body"); } }
/// <summary>
/// Gets the attached item of this <see cref="MailMessage"/>.
/// </summary>
/// <value>The attached item.</value>
public Item AttachedItem { get { return GetMember<Item>("AttachedItem"); } }
/// <summary>
/// Gets the shipping fee of this <see cref="MailMessage"/>.
/// </summary>
/// <value>The shipping fee.</value>
public int ShippingFee { get { return GetMember<int>("ShippingFee"); } }
/// <summary>
/// Gets a value indicating whether this <seealso cref="MailMessage"/> is unread.
/// </summary>
/// <value>
/// <c>true</c> if this <seealso cref="MailMessage"/> is unread; otherwise, <c>false</c>.
/// </value>
public bool IsUnread { get { return GetMember<bool>("IsUnread"); } }
/// <summary>
/// Reads this <see cref="MailMessage"/>.
/// </summary>
/// <returns></returns>
public bool Read()
{
return ExecuteMethod("Read");
}
/// <summary>
/// Replies this <see cref="MailMessage"/>.
/// </summary>
/// <returns></returns>
public bool Reply()
{
return ExecuteMethod("Reply");
}
/// <summary>
/// Returns this <see cref="MailMessage"/>.
/// </summary>
/// <returns></returns>
public bool Return()
{
return ExecuteMethod("Return");
}
/// <summary>
/// Deletes this <see cref="MailMessage"/>.
/// </summary>
/// <returns></returns>
public bool Delete()
{
return ExecuteMethod("Delete");
}
/// <summary>
/// Takes the item.
/// </summary>
/// <returns></returns>
public bool TakeItem()
{
return ExecuteMethod("TakeItem");
}
/// <summary>
/// Takes the coin.
/// </summary>
/// <returns></returns>
public bool TakeCoin()
{
return ExecuteMethod("TakeCoin");
}
}
}