using System;
using System.Diagnostics;
using LavishScriptAPI;
namespace MRBot.IsxEq2.UI
{
///
/// Allows interaction with Reward Windows.
///
public class RewardWindow : LavishScriptObject
{
#region Constructor
///
/// Constructor
///
/// LS Object
public RewardWindow(LavishScriptObject copy) : base(copy) { }
#endregion
#region Members
///
/// Returns the RewardWindow as an EQ2Window
///
public EQ2Window ToEQ2UIPage
{
get
{
Trace.WriteLine(String.Format("RewardWindow:ToEQ2UIPage"));
return new EQ2Window(this.GetMember("ToEQ2UIPage"));
}
}
#endregion
#region Methods
///
/// Accepts the reward
///
/// call success
public bool Accept()
{
Trace.WriteLine(String.Format("RewardWindow:Accept()"));
return this.ExecuteMethod("Accept");
}
///
/// Cancels the reward window
///
/// call success
public bool Cancel()
{
Trace.WriteLine(String.Format("RewardWindow:Cancel()"));
return this.ExecuteMethod("Cancel");
}
///
/// Receives the reward
///
///
public bool Receive()
{
Trace.WriteLine(String.Format("RewardWindow:Receive()"));
return this.ExecuteMethod("Receive");
}
#endregion
}
}