using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;

namespace Replikanto
{
	internal class SlaveAccountSavedStatus
	{
		public SlaveAccountSavedStatus()
		{
		}

		public SlaveAccountSavedStatus(SlaveAccount slaveAccount)
		{
			this.Convert(slaveAccount);
		}

		public FollowerAccountStatus Status { get; set; }

		public bool CrossOrder { get; set; }

		public bool UseATM { get; set; }

		public bool MarketOnly { get; set; }

		public double PctField { get; set; }

		public double Ratio { get; set; }

		public ushort PreAllocation { get; set; }

		public void Convert(SlaveAccount slaveAccount)
		{
			this.Status = slaveAccount.Status;
			this.CrossOrder = slaveAccount.CrossOrder;
			this.UseATM = slaveAccount.UseATM;
			this.MarketOnly = slaveAccount.MarketOnly;
			this.PctField = slaveAccount.PctField;
			this.Ratio = slaveAccount.Ratio;
			this.PreAllocation = slaveAccount.PreAllocation;
		}

		public override string ToString()
		{
			PropertyInfo[] array = Delegate166.smethod_0(Delegate165.smethod_0(this, Delegate165.delegate165_0), Delegate166.delegate166_0);
			StringBuilder stringBuilder = new StringBuilder(Delegate32.smethod_0("{0} ", Delegate192.smethod_0(this, Delegate192.delegate192_0), Delegate32.delegate32_0));
			foreach (PropertyInfo propertyInfo in array)
			{
				Delegate170.smethod_0(stringBuilder, "{0}={1} ", Delegate95.smethod_0(propertyInfo, Delegate95.delegate95_0), Delegate169.smethod_0(propertyInfo, this, Delegate169.delegate169_0), Delegate170.delegate170_0);
			}
			return Delegate86.smethod_0(stringBuilder, Delegate86.delegate86_0);
		}

		internal static void smethod_0()
		{
		}

		internal static void smethod_1()
		{
		}

		internal static FollowerAccountStatus smethod_2(object object_0)
		{
			return object_0.Status;
		}

		internal static bool smethod_3(object object_0)
		{
			return object_0.CrossOrder;
		}

		internal static bool smethod_4(object object_0)
		{
			return object_0.MarketOnly;
		}

		internal static double smethod_5(object object_0)
		{
			return object_0.Ratio;
		}

		internal static object smethod_6(int int_0)
		{
			return Class10.smethod_17(int_0);
		}

		internal static void smethod_7()
		{
		}

		[CompilerGenerated]
		private FollowerAccountStatus followerAccountStatus_0;

		[CompilerGenerated]
		private bool bool_0;

		[CompilerGenerated]
		private bool bool_1;

		[CompilerGenerated]
		private bool bool_2;

		[CompilerGenerated]
		private double double_0;

		[CompilerGenerated]
		private double double_1;

		[CompilerGenerated]
		private ushort ushort_0;
	}
}
