/* 
 * GK application - OmniPOS Service API
 *
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 5.21.1-b03
 * 
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 */

using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;

namespace IO.Swagger.Model
{
    /// <summary>
    /// TableStatus &lt;p&gt;Entity which represents the status of a table.&lt;/p&gt;
    /// </summary>
    [DataContract]
    public partial class ComGkSoftwarePosApiServiceHospitalityTableStatus :  IEquatable<ComGkSoftwarePosApiServiceHospitalityTableStatus>, IValidatableObject
    {
        /// <summary>
        /// &lt;p&gt;Status of the table&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Status of the table&lt;/p&gt;</value>
        [JsonConverter(typeof(StringEnumConverter))]
        public enum StatusEnum
        {
            
            /// <summary>
            /// Enum EMPTY for value: EMPTY
            /// </summary>
            [EnumMember(Value = "EMPTY")]
            EMPTY = 1,
            
            /// <summary>
            /// Enum OPEN for value: OPEN
            /// </summary>
            [EnumMember(Value = "OPEN")]
            OPEN = 2,
            
            /// <summary>
            /// Enum INPROGRESS for value: IN_PROGRESS
            /// </summary>
            [EnumMember(Value = "IN_PROGRESS")]
            INPROGRESS = 3
        }

        /// <summary>
        /// &lt;p&gt;Status of the table&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Status of the table&lt;/p&gt;</value>
        [DataMember(Name="status", EmitDefaultValue=false)]
        public StatusEnum? Status { get; set; }
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwarePosApiServiceHospitalityTableStatus" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected ComGkSoftwarePosApiServiceHospitalityTableStatus() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwarePosApiServiceHospitalityTableStatus" /> class.
        /// </summary>
        /// <param name="tableName">&lt;p&gt;Number of the table (e.g. 10 or 10.1)&lt;/p&gt; (required).</param>
        /// <param name="total">&lt;p&gt;Current total of all open/unpaid line items of the table&lt;/p&gt;.</param>
        /// <param name="status">&lt;p&gt;Status of the table&lt;/p&gt;.</param>
        /// <param name="currentWorkstationId">&lt;p&gt;Workstation where the table is currently in progress. Only filled if Status &#x3D; InProgress&lt;/p&gt;.</param>
        /// <param name="lastTransactionId">&lt;p&gt;TransactionId of the last transaction of the table. The &#39;linked&#39; transaction contains all relevant data of the table&lt;/p&gt;.</param>
        /// <param name="lastTransaction">&lt;p&gt;Transaction DO of the last transaction&lt;/p&gt;.</param>
        /// <param name="lastWorkstationId">&lt;p&gt;Workstation of the last modification&lt;/p&gt;.</param>
        /// <param name="tableOwnerId">&lt;p&gt;Id of the table owner (opened the table or handover)&lt;/p&gt;.</param>
        /// <param name="tableOwnerFirstName">&lt;p&gt;First name of the table owner&lt;/p&gt;.</param>
        /// <param name="tableOwnerLastName">&lt;p&gt;Last name of the table owner&lt;/p&gt;.</param>
        /// <param name="checksum">&lt;p&gt;Checksum of the transaction &lt;/p&gt;.</param>
        /// <param name="xXCustom08">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom10">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom09">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom07">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom05">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom06">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom11">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom12">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom13">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom14">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom15">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom03">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom02">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom04">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        /// <param name="xXCustom01">&lt;p&gt;Customizable information&lt;/p&gt;.</param>
        public ComGkSoftwarePosApiServiceHospitalityTableStatus(string tableName = default(string), double? total = default(double?), StatusEnum? status = default(StatusEnum?), string currentWorkstationId = default(string), string lastTransactionId = default(string), ComGkSoftwareGkrApiTxpoolDtoTransaction lastTransaction = default(ComGkSoftwareGkrApiTxpoolDtoTransaction), string lastWorkstationId = default(string), string tableOwnerId = default(string), string tableOwnerFirstName = default(string), string tableOwnerLastName = default(string), string checksum = default(string), string xXCustom08 = default(string), string xXCustom10 = default(string), string xXCustom09 = default(string), string xXCustom07 = default(string), string xXCustom05 = default(string), string xXCustom06 = default(string), string xXCustom11 = default(string), string xXCustom12 = default(string), string xXCustom13 = default(string), string xXCustom14 = default(string), string xXCustom15 = default(string), string xXCustom03 = default(string), string xXCustom02 = default(string), string xXCustom04 = default(string), string xXCustom01 = default(string))
        {
            // to ensure "tableName" is required (not null)
            if (tableName == null)
            {
                throw new InvalidDataException("tableName is a required property for ComGkSoftwarePosApiServiceHospitalityTableStatus and cannot be null");
            }
            else
            {
                this.TableName = tableName;
            }
            this.Total = total;
            this.Status = status;
            this.CurrentWorkstationId = currentWorkstationId;
            this.LastTransactionId = lastTransactionId;
            this.LastTransaction = lastTransaction;
            this.LastWorkstationId = lastWorkstationId;
            this.TableOwnerId = tableOwnerId;
            this.TableOwnerFirstName = tableOwnerFirstName;
            this.TableOwnerLastName = tableOwnerLastName;
            this.Checksum = checksum;
            this.XXCustom08 = xXCustom08;
            this.XXCustom10 = xXCustom10;
            this.XXCustom09 = xXCustom09;
            this.XXCustom07 = xXCustom07;
            this.XXCustom05 = xXCustom05;
            this.XXCustom06 = xXCustom06;
            this.XXCustom11 = xXCustom11;
            this.XXCustom12 = xXCustom12;
            this.XXCustom13 = xXCustom13;
            this.XXCustom14 = xXCustom14;
            this.XXCustom15 = xXCustom15;
            this.XXCustom03 = xXCustom03;
            this.XXCustom02 = xXCustom02;
            this.XXCustom04 = xXCustom04;
            this.XXCustom01 = xXCustom01;
        }
        
        /// <summary>
        /// &lt;p&gt;Number of the table (e.g. 10 or 10.1)&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Number of the table (e.g. 10 or 10.1)&lt;/p&gt;</value>
        [DataMember(Name="tableName", EmitDefaultValue=false)]
        public string TableName { get; set; }

        /// <summary>
        /// &lt;p&gt;Current total of all open/unpaid line items of the table&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Current total of all open/unpaid line items of the table&lt;/p&gt;</value>
        [DataMember(Name="total", EmitDefaultValue=false)]
        public double? Total { get; set; }


        /// <summary>
        /// &lt;p&gt;Workstation where the table is currently in progress. Only filled if Status &#x3D; InProgress&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Workstation where the table is currently in progress. Only filled if Status &#x3D; InProgress&lt;/p&gt;</value>
        [DataMember(Name="currentWorkstationId", EmitDefaultValue=false)]
        public string CurrentWorkstationId { get; set; }

        /// <summary>
        /// &lt;p&gt;TransactionId of the last transaction of the table. The &#39;linked&#39; transaction contains all relevant data of the table&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;TransactionId of the last transaction of the table. The &#39;linked&#39; transaction contains all relevant data of the table&lt;/p&gt;</value>
        [DataMember(Name="lastTransactionId", EmitDefaultValue=false)]
        public string LastTransactionId { get; set; }

        /// <summary>
        /// &lt;p&gt;Transaction DO of the last transaction&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Transaction DO of the last transaction&lt;/p&gt;</value>
        [DataMember(Name="lastTransaction", EmitDefaultValue=false)]
        public ComGkSoftwareGkrApiTxpoolDtoTransaction LastTransaction { get; set; }

        /// <summary>
        /// &lt;p&gt;Workstation of the last modification&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Workstation of the last modification&lt;/p&gt;</value>
        [DataMember(Name="lastWorkstationId", EmitDefaultValue=false)]
        public string LastWorkstationId { get; set; }

        /// <summary>
        /// &lt;p&gt;Id of the table owner (opened the table or handover)&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Id of the table owner (opened the table or handover)&lt;/p&gt;</value>
        [DataMember(Name="tableOwnerId", EmitDefaultValue=false)]
        public string TableOwnerId { get; set; }

        /// <summary>
        /// &lt;p&gt;First name of the table owner&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;First name of the table owner&lt;/p&gt;</value>
        [DataMember(Name="tableOwnerFirstName", EmitDefaultValue=false)]
        public string TableOwnerFirstName { get; set; }

        /// <summary>
        /// &lt;p&gt;Last name of the table owner&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Last name of the table owner&lt;/p&gt;</value>
        [DataMember(Name="tableOwnerLastName", EmitDefaultValue=false)]
        public string TableOwnerLastName { get; set; }

        /// <summary>
        /// &lt;p&gt;Checksum of the transaction &lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Checksum of the transaction &lt;/p&gt;</value>
        [DataMember(Name="checksum", EmitDefaultValue=false)]
        public string Checksum { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom08", EmitDefaultValue=false)]
        public string XXCustom08 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom10", EmitDefaultValue=false)]
        public string XXCustom10 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom09", EmitDefaultValue=false)]
        public string XXCustom09 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom07", EmitDefaultValue=false)]
        public string XXCustom07 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom05", EmitDefaultValue=false)]
        public string XXCustom05 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom06", EmitDefaultValue=false)]
        public string XXCustom06 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom11", EmitDefaultValue=false)]
        public string XXCustom11 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom12", EmitDefaultValue=false)]
        public string XXCustom12 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom13", EmitDefaultValue=false)]
        public string XXCustom13 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom14", EmitDefaultValue=false)]
        public string XXCustom14 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom15", EmitDefaultValue=false)]
        public string XXCustom15 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom03", EmitDefaultValue=false)]
        public string XXCustom03 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom02", EmitDefaultValue=false)]
        public string XXCustom02 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom04", EmitDefaultValue=false)]
        public string XXCustom04 { get; set; }

        /// <summary>
        /// &lt;p&gt;Customizable information&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Customizable information&lt;/p&gt;</value>
        [DataMember(Name="xXCustom01", EmitDefaultValue=false)]
        public string XXCustom01 { get; set; }

        /// <summary>
        /// Returns the string presentation of the object
        /// </summary>
        /// <returns>String presentation of the object</returns>
        public override string ToString()
        {
            var sb = new StringBuilder();
            sb.Append("class ComGkSoftwarePosApiServiceHospitalityTableStatus {\n");
            sb.Append("  TableName: ").Append(TableName).Append("\n");
            sb.Append("  Total: ").Append(Total).Append("\n");
            sb.Append("  Status: ").Append(Status).Append("\n");
            sb.Append("  CurrentWorkstationId: ").Append(CurrentWorkstationId).Append("\n");
            sb.Append("  LastTransactionId: ").Append(LastTransactionId).Append("\n");
            sb.Append("  LastTransaction: ").Append(LastTransaction).Append("\n");
            sb.Append("  LastWorkstationId: ").Append(LastWorkstationId).Append("\n");
            sb.Append("  TableOwnerId: ").Append(TableOwnerId).Append("\n");
            sb.Append("  TableOwnerFirstName: ").Append(TableOwnerFirstName).Append("\n");
            sb.Append("  TableOwnerLastName: ").Append(TableOwnerLastName).Append("\n");
            sb.Append("  Checksum: ").Append(Checksum).Append("\n");
            sb.Append("  XXCustom08: ").Append(XXCustom08).Append("\n");
            sb.Append("  XXCustom10: ").Append(XXCustom10).Append("\n");
            sb.Append("  XXCustom09: ").Append(XXCustom09).Append("\n");
            sb.Append("  XXCustom07: ").Append(XXCustom07).Append("\n");
            sb.Append("  XXCustom05: ").Append(XXCustom05).Append("\n");
            sb.Append("  XXCustom06: ").Append(XXCustom06).Append("\n");
            sb.Append("  XXCustom11: ").Append(XXCustom11).Append("\n");
            sb.Append("  XXCustom12: ").Append(XXCustom12).Append("\n");
            sb.Append("  XXCustom13: ").Append(XXCustom13).Append("\n");
            sb.Append("  XXCustom14: ").Append(XXCustom14).Append("\n");
            sb.Append("  XXCustom15: ").Append(XXCustom15).Append("\n");
            sb.Append("  XXCustom03: ").Append(XXCustom03).Append("\n");
            sb.Append("  XXCustom02: ").Append(XXCustom02).Append("\n");
            sb.Append("  XXCustom04: ").Append(XXCustom04).Append("\n");
            sb.Append("  XXCustom01: ").Append(XXCustom01).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }
  
        /// <summary>
        /// Returns the JSON string presentation of the object
        /// </summary>
        /// <returns>JSON string presentation of the object</returns>
        public virtual string ToJson()
        {
            return JsonConvert.SerializeObject(this, Formatting.Indented);
        }

        /// <summary>
        /// Returns true if objects are equal
        /// </summary>
        /// <param name="input">Object to be compared</param>
        /// <returns>Boolean</returns>
        public override bool Equals(object input)
        {
            return this.Equals(input as ComGkSoftwarePosApiServiceHospitalityTableStatus);
        }

        /// <summary>
        /// Returns true if ComGkSoftwarePosApiServiceHospitalityTableStatus instances are equal
        /// </summary>
        /// <param name="input">Instance of ComGkSoftwarePosApiServiceHospitalityTableStatus to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComGkSoftwarePosApiServiceHospitalityTableStatus input)
        {
            if (input == null)
                return false;

            return 
                (
                    this.TableName == input.TableName ||
                    (this.TableName != null &&
                    this.TableName.Equals(input.TableName))
                ) && 
                (
                    this.Total == input.Total ||
                    (this.Total != null &&
                    this.Total.Equals(input.Total))
                ) && 
                (
                    this.Status == input.Status ||
                    (this.Status != null &&
                    this.Status.Equals(input.Status))
                ) && 
                (
                    this.CurrentWorkstationId == input.CurrentWorkstationId ||
                    (this.CurrentWorkstationId != null &&
                    this.CurrentWorkstationId.Equals(input.CurrentWorkstationId))
                ) && 
                (
                    this.LastTransactionId == input.LastTransactionId ||
                    (this.LastTransactionId != null &&
                    this.LastTransactionId.Equals(input.LastTransactionId))
                ) && 
                (
                    this.LastTransaction == input.LastTransaction ||
                    (this.LastTransaction != null &&
                    this.LastTransaction.Equals(input.LastTransaction))
                ) && 
                (
                    this.LastWorkstationId == input.LastWorkstationId ||
                    (this.LastWorkstationId != null &&
                    this.LastWorkstationId.Equals(input.LastWorkstationId))
                ) && 
                (
                    this.TableOwnerId == input.TableOwnerId ||
                    (this.TableOwnerId != null &&
                    this.TableOwnerId.Equals(input.TableOwnerId))
                ) && 
                (
                    this.TableOwnerFirstName == input.TableOwnerFirstName ||
                    (this.TableOwnerFirstName != null &&
                    this.TableOwnerFirstName.Equals(input.TableOwnerFirstName))
                ) && 
                (
                    this.TableOwnerLastName == input.TableOwnerLastName ||
                    (this.TableOwnerLastName != null &&
                    this.TableOwnerLastName.Equals(input.TableOwnerLastName))
                ) && 
                (
                    this.Checksum == input.Checksum ||
                    (this.Checksum != null &&
                    this.Checksum.Equals(input.Checksum))
                ) && 
                (
                    this.XXCustom08 == input.XXCustom08 ||
                    (this.XXCustom08 != null &&
                    this.XXCustom08.Equals(input.XXCustom08))
                ) && 
                (
                    this.XXCustom10 == input.XXCustom10 ||
                    (this.XXCustom10 != null &&
                    this.XXCustom10.Equals(input.XXCustom10))
                ) && 
                (
                    this.XXCustom09 == input.XXCustom09 ||
                    (this.XXCustom09 != null &&
                    this.XXCustom09.Equals(input.XXCustom09))
                ) && 
                (
                    this.XXCustom07 == input.XXCustom07 ||
                    (this.XXCustom07 != null &&
                    this.XXCustom07.Equals(input.XXCustom07))
                ) && 
                (
                    this.XXCustom05 == input.XXCustom05 ||
                    (this.XXCustom05 != null &&
                    this.XXCustom05.Equals(input.XXCustom05))
                ) && 
                (
                    this.XXCustom06 == input.XXCustom06 ||
                    (this.XXCustom06 != null &&
                    this.XXCustom06.Equals(input.XXCustom06))
                ) && 
                (
                    this.XXCustom11 == input.XXCustom11 ||
                    (this.XXCustom11 != null &&
                    this.XXCustom11.Equals(input.XXCustom11))
                ) && 
                (
                    this.XXCustom12 == input.XXCustom12 ||
                    (this.XXCustom12 != null &&
                    this.XXCustom12.Equals(input.XXCustom12))
                ) && 
                (
                    this.XXCustom13 == input.XXCustom13 ||
                    (this.XXCustom13 != null &&
                    this.XXCustom13.Equals(input.XXCustom13))
                ) && 
                (
                    this.XXCustom14 == input.XXCustom14 ||
                    (this.XXCustom14 != null &&
                    this.XXCustom14.Equals(input.XXCustom14))
                ) && 
                (
                    this.XXCustom15 == input.XXCustom15 ||
                    (this.XXCustom15 != null &&
                    this.XXCustom15.Equals(input.XXCustom15))
                ) && 
                (
                    this.XXCustom03 == input.XXCustom03 ||
                    (this.XXCustom03 != null &&
                    this.XXCustom03.Equals(input.XXCustom03))
                ) && 
                (
                    this.XXCustom02 == input.XXCustom02 ||
                    (this.XXCustom02 != null &&
                    this.XXCustom02.Equals(input.XXCustom02))
                ) && 
                (
                    this.XXCustom04 == input.XXCustom04 ||
                    (this.XXCustom04 != null &&
                    this.XXCustom04.Equals(input.XXCustom04))
                ) && 
                (
                    this.XXCustom01 == input.XXCustom01 ||
                    (this.XXCustom01 != null &&
                    this.XXCustom01.Equals(input.XXCustom01))
                );
        }

        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;
                if (this.TableName != null)
                    hashCode = hashCode * 59 + this.TableName.GetHashCode();
                if (this.Total != null)
                    hashCode = hashCode * 59 + this.Total.GetHashCode();
                if (this.Status != null)
                    hashCode = hashCode * 59 + this.Status.GetHashCode();
                if (this.CurrentWorkstationId != null)
                    hashCode = hashCode * 59 + this.CurrentWorkstationId.GetHashCode();
                if (this.LastTransactionId != null)
                    hashCode = hashCode * 59 + this.LastTransactionId.GetHashCode();
                if (this.LastTransaction != null)
                    hashCode = hashCode * 59 + this.LastTransaction.GetHashCode();
                if (this.LastWorkstationId != null)
                    hashCode = hashCode * 59 + this.LastWorkstationId.GetHashCode();
                if (this.TableOwnerId != null)
                    hashCode = hashCode * 59 + this.TableOwnerId.GetHashCode();
                if (this.TableOwnerFirstName != null)
                    hashCode = hashCode * 59 + this.TableOwnerFirstName.GetHashCode();
                if (this.TableOwnerLastName != null)
                    hashCode = hashCode * 59 + this.TableOwnerLastName.GetHashCode();
                if (this.Checksum != null)
                    hashCode = hashCode * 59 + this.Checksum.GetHashCode();
                if (this.XXCustom08 != null)
                    hashCode = hashCode * 59 + this.XXCustom08.GetHashCode();
                if (this.XXCustom10 != null)
                    hashCode = hashCode * 59 + this.XXCustom10.GetHashCode();
                if (this.XXCustom09 != null)
                    hashCode = hashCode * 59 + this.XXCustom09.GetHashCode();
                if (this.XXCustom07 != null)
                    hashCode = hashCode * 59 + this.XXCustom07.GetHashCode();
                if (this.XXCustom05 != null)
                    hashCode = hashCode * 59 + this.XXCustom05.GetHashCode();
                if (this.XXCustom06 != null)
                    hashCode = hashCode * 59 + this.XXCustom06.GetHashCode();
                if (this.XXCustom11 != null)
                    hashCode = hashCode * 59 + this.XXCustom11.GetHashCode();
                if (this.XXCustom12 != null)
                    hashCode = hashCode * 59 + this.XXCustom12.GetHashCode();
                if (this.XXCustom13 != null)
                    hashCode = hashCode * 59 + this.XXCustom13.GetHashCode();
                if (this.XXCustom14 != null)
                    hashCode = hashCode * 59 + this.XXCustom14.GetHashCode();
                if (this.XXCustom15 != null)
                    hashCode = hashCode * 59 + this.XXCustom15.GetHashCode();
                if (this.XXCustom03 != null)
                    hashCode = hashCode * 59 + this.XXCustom03.GetHashCode();
                if (this.XXCustom02 != null)
                    hashCode = hashCode * 59 + this.XXCustom02.GetHashCode();
                if (this.XXCustom04 != null)
                    hashCode = hashCode * 59 + this.XXCustom04.GetHashCode();
                if (this.XXCustom01 != null)
                    hashCode = hashCode * 59 + this.XXCustom01.GetHashCode();
                return hashCode;
            }
        }

        /// <summary>
        /// To validate all properties of the instance
        /// </summary>
        /// <param name="validationContext">Validation context</param>
        /// <returns>Validation Result</returns>
        IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
        {
            yield break;
        }
    }

}
