/*
 * Warframe.market API
 *
 * ## Documentation is under very slow and heavy development  This document will gradually be supplemented and updated over some extended period of time.  ## Unstable endpoints Endpoint that is not stable and probably will be changed in the future will be marked with exclamation sign -> âš  
 *
 * The version of the OpenAPI document: 1.14.0
 * Generated by: https://github.com/openapitools/openapi-generator.git
 */


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

namespace WarframeMarket.Model
{
    /// <summary>
    /// DropsourceMission
    /// </summary>
    [DataContract(Name = "DropsourceMission")]
    public partial class DropsourceMission : IEquatable<DropsourceMission>, IValidatableObject
    {
        /// <summary>
        /// How rare item is
        /// </summary>
        /// <value>How rare item is</value>
        [JsonConverter(typeof(StringEnumConverter))]
        public enum RarityEnum
        {
            /// <summary>
            /// Enum VeryCommon for value: very_common
            /// </summary>
            [EnumMember(Value = "very_common")]
            VeryCommon = 1,

            /// <summary>
            /// Enum Common for value: common
            /// </summary>
            [EnumMember(Value = "common")]
            Common = 2,

            /// <summary>
            /// Enum Uncommon for value: uncommon
            /// </summary>
            [EnumMember(Value = "uncommon")]
            Uncommon = 3,

            /// <summary>
            /// Enum Rare for value: rare
            /// </summary>
            [EnumMember(Value = "rare")]
            Rare = 4,

            /// <summary>
            /// Enum UltraRare for value: ultra_rare
            /// </summary>
            [EnumMember(Value = "ultra_rare")]
            UltraRare = 5,

            /// <summary>
            /// Enum Legendary for value: legendary
            /// </summary>
            [EnumMember(Value = "legendary")]
            Legendary = 6
        }


        /// <summary>
        /// How rare item is
        /// </summary>
        /// <value>How rare item is</value>
        [DataMember(Name = "rarity", EmitDefaultValue = false)]
        public RarityEnum? Rarity { get; set; }
        /// <summary>
        /// Defines ItemSubtype
        /// </summary>
        [JsonConverter(typeof(StringEnumConverter))]
        public enum ItemSubtypeEnum
        {
            /// <summary>
            /// Enum Intact for value: intact
            /// </summary>
            [EnumMember(Value = "intact")]
            Intact = 1,

            /// <summary>
            /// Enum Exceptional for value: exceptional
            /// </summary>
            [EnumMember(Value = "exceptional")]
            Exceptional = 2,

            /// <summary>
            /// Enum Flawless for value: flawless
            /// </summary>
            [EnumMember(Value = "flawless")]
            Flawless = 3,

            /// <summary>
            /// Enum Radiant for value: radiant
            /// </summary>
            [EnumMember(Value = "radiant")]
            Radiant = 4,

            /// <summary>
            /// Enum Small for value: small
            /// </summary>
            [EnumMember(Value = "small")]
            Small = 5,

            /// <summary>
            /// Enum Medium for value: medium
            /// </summary>
            [EnumMember(Value = "medium")]
            Medium = 6,

            /// <summary>
            /// Enum Large for value: large
            /// </summary>
            [EnumMember(Value = "large")]
            Large = 7,

            /// <summary>
            /// Enum Basic for value: basic
            /// </summary>
            [EnumMember(Value = "basic")]
            Basic = 8,

            /// <summary>
            /// Enum Adorned for value: adorned
            /// </summary>
            [EnumMember(Value = "adorned")]
            Adorned = 9,

            /// <summary>
            /// Enum Magnificent for value: magnificent
            /// </summary>
            [EnumMember(Value = "magnificent")]
            Magnificent = 10
        }


        /// <summary>
        /// Gets or Sets ItemSubtype
        /// </summary>
        [DataMember(Name = "item_subtype", EmitDefaultValue = true)]
        public ItemSubtypeEnum? ItemSubtype { get; set; }
        /// <summary>
        /// Defines Rotation
        /// </summary>
        [JsonConverter(typeof(StringEnumConverter))]
        public enum RotationEnum
        {
            /// <summary>
            /// Enum A for value: a
            /// </summary>
            [EnumMember(Value = "a")]
            A = 1,

            /// <summary>
            /// Enum B for value: b
            /// </summary>
            [EnumMember(Value = "b")]
            B = 2,

            /// <summary>
            /// Enum C for value: c
            /// </summary>
            [EnumMember(Value = "c")]
            C = 3
        }


        /// <summary>
        /// Gets or Sets Rotation
        /// </summary>
        [DataMember(Name = "rotation", EmitDefaultValue = true)]
        public RotationEnum? Rotation { get; set; }
        /// <summary>
        /// Defines Stage
        /// </summary>
        [JsonConverter(typeof(StringEnumConverter))]
        public enum StageEnum
        {
            /// <summary>
            /// Enum _1 for value: 1
            /// </summary>
            [EnumMember(Value = "1")]
            _1 = 1,

            /// <summary>
            /// Enum _2 for value: 2
            /// </summary>
            [EnumMember(Value = "2")]
            _2 = 2,

            /// <summary>
            /// Enum _3 for value: 3
            /// </summary>
            [EnumMember(Value = "3")]
            _3 = 3,

            /// <summary>
            /// Enum _4 for value: 4
            /// </summary>
            [EnumMember(Value = "4")]
            _4 = 4,

            /// <summary>
            /// Enum Final for value: final
            /// </summary>
            [EnumMember(Value = "final")]
            Final = 5
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="DropsourceMission" /> class.
        /// </summary>
        /// <param name="type">type.</param>
        /// <param name="item">item.</param>
        /// <param name="location">location.</param>
        /// <param name="mission">mission.</param>
        /// <param name="varEvent">varEvent.</param>
        /// <param name="rate">rate.</param>
        /// <param name="rarity">How rare item is.</param>
        /// <param name="itemSubtype">itemSubtype.</param>
        /// <param name="rotation">rotation.</param>
        /// <param name="stage">openworld missions only.</param>
        /// <param name="modifier">modifier.</param>
        /// <param name="id">id.</param>
        public DropsourceMission(string type = default(string), string item = default(string), string location = default(string), string mission = default(string), bool? varEvent = default(bool?), decimal rate = default(decimal), RarityEnum? rarity = default(RarityEnum?), ItemSubtypeEnum? itemSubtype = default(ItemSubtypeEnum?), RotationEnum? rotation = default(RotationEnum?), List<StageEnum> stage = default(List<StageEnum>), string modifier = default(string), string id = default(string))
        {
            this.Type = type;
            this.Item = item;
            this.Location = location;
            this.Mission = mission;
            this.VarEvent = varEvent;
            this.Rate = rate;
            this.Rarity = rarity;
            this.ItemSubtype = itemSubtype;
            this.Rotation = rotation;
            this.Stage = stage;
            this.Modifier = modifier;
            this.Id = id;
        }

        /// <summary>
        /// Gets or Sets Type
        /// </summary>
        /// <example>mission</example>
        [DataMember(Name = "type", EmitDefaultValue = false)]
        public string Type { get; set; }

        /// <summary>
        /// Gets or Sets Item
        /// </summary>
        /// <example>5a2feeb1c2c9e90cbdaa23d2</example>
        [DataMember(Name = "item", EmitDefaultValue = false)]
        public string Item { get; set; }

        /// <summary>
        /// Gets or Sets Location
        /// </summary>
        /// <example>62d2eb4775156700663c838e</example>
        [DataMember(Name = "location", EmitDefaultValue = false)]
        public string Location { get; set; }

        /// <summary>
        /// Gets or Sets Mission
        /// </summary>
        /// <example>62d2f0a2751567007abb198b</example>
        [DataMember(Name = "mission", EmitDefaultValue = false)]
        public string Mission { get; set; }

        /// <summary>
        /// Gets or Sets VarEvent
        /// </summary>
        /// <example>true</example>
        [DataMember(Name = "event", EmitDefaultValue = true)]
        public bool? VarEvent { get; set; }

        /// <summary>
        /// Gets or Sets Rate
        /// </summary>
        [DataMember(Name = "rate", EmitDefaultValue = false)]
        public decimal Rate { get; set; }

        /// <summary>
        /// openworld missions only
        /// </summary>
        /// <value>openworld missions only</value>
        [DataMember(Name = "stage", EmitDefaultValue = true)]
        public List<DropsourceMission.StageEnum> Stage { get; set; }

        /// <summary>
        /// Gets or Sets Modifier
        /// </summary>
        /// <example>normal</example>
        [DataMember(Name = "modifier", EmitDefaultValue = true)]
        public string Modifier { get; set; }

        /// <summary>
        /// Gets or Sets Id
        /// </summary>
        /// <example>5a2feeb1c2c9e90cbdaa23d2</example>
        [DataMember(Name = "id", EmitDefaultValue = false)]
        public string Id { get; set; }

        /// <summary>
        /// Returns the string presentation of the object
        /// </summary>
        /// <returns>String presentation of the object</returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("class DropsourceMission {\n");
            sb.Append("  Type: ").Append(Type).Append("\n");
            sb.Append("  Item: ").Append(Item).Append("\n");
            sb.Append("  Location: ").Append(Location).Append("\n");
            sb.Append("  Mission: ").Append(Mission).Append("\n");
            sb.Append("  VarEvent: ").Append(VarEvent).Append("\n");
            sb.Append("  Rate: ").Append(Rate).Append("\n");
            sb.Append("  Rarity: ").Append(Rarity).Append("\n");
            sb.Append("  ItemSubtype: ").Append(ItemSubtype).Append("\n");
            sb.Append("  Rotation: ").Append(Rotation).Append("\n");
            sb.Append("  Stage: ").Append(Stage).Append("\n");
            sb.Append("  Modifier: ").Append(Modifier).Append("\n");
            sb.Append("  Id: ").Append(Id).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 Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.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 DropsourceMission);
        }

        /// <summary>
        /// Returns true if DropsourceMission instances are equal
        /// </summary>
        /// <param name="input">Instance of DropsourceMission to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DropsourceMission input)
        {
            if (input == null)
            {
                return false;
            }
            return 
                (
                    this.Type == input.Type ||
                    (this.Type != null &&
                    this.Type.Equals(input.Type))
                ) && 
                (
                    this.Item == input.Item ||
                    (this.Item != null &&
                    this.Item.Equals(input.Item))
                ) && 
                (
                    this.Location == input.Location ||
                    (this.Location != null &&
                    this.Location.Equals(input.Location))
                ) && 
                (
                    this.Mission == input.Mission ||
                    (this.Mission != null &&
                    this.Mission.Equals(input.Mission))
                ) && 
                (
                    this.VarEvent == input.VarEvent ||
                    (this.VarEvent != null &&
                    this.VarEvent.Equals(input.VarEvent))
                ) && 
                (
                    this.Rate == input.Rate ||
                    this.Rate.Equals(input.Rate)
                ) && 
                (
                    this.Rarity == input.Rarity ||
                    this.Rarity.Equals(input.Rarity)
                ) && 
                (
                    this.ItemSubtype == input.ItemSubtype ||
                    this.ItemSubtype.Equals(input.ItemSubtype)
                ) && 
                (
                    this.Rotation == input.Rotation ||
                    this.Rotation.Equals(input.Rotation)
                ) && 
                (
                    this.Stage == input.Stage ||
                    this.Stage != null &&
                    input.Stage != null &&
                    this.Stage.SequenceEqual(input.Stage)
                ) && 
                (
                    this.Modifier == input.Modifier ||
                    (this.Modifier != null &&
                    this.Modifier.Equals(input.Modifier))
                ) && 
                (
                    this.Id == input.Id ||
                    (this.Id != null &&
                    this.Id.Equals(input.Id))
                );
        }

        /// <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.Type != null)
                {
                    hashCode = (hashCode * 59) + this.Type.GetHashCode();
                }
                if (this.Item != null)
                {
                    hashCode = (hashCode * 59) + this.Item.GetHashCode();
                }
                if (this.Location != null)
                {
                    hashCode = (hashCode * 59) + this.Location.GetHashCode();
                }
                if (this.Mission != null)
                {
                    hashCode = (hashCode * 59) + this.Mission.GetHashCode();
                }
                if (this.VarEvent != null)
                {
                    hashCode = (hashCode * 59) + this.VarEvent.GetHashCode();
                }
                hashCode = (hashCode * 59) + this.Rate.GetHashCode();
                hashCode = (hashCode * 59) + this.Rarity.GetHashCode();
                hashCode = (hashCode * 59) + this.ItemSubtype.GetHashCode();
                hashCode = (hashCode * 59) + this.Rotation.GetHashCode();
                if (this.Stage != null)
                {
                    hashCode = (hashCode * 59) + this.Stage.GetHashCode();
                }
                if (this.Modifier != null)
                {
                    hashCode = (hashCode * 59) + this.Modifier.GetHashCode();
                }
                if (this.Id != null)
                {
                    hashCode = (hashCode * 59) + this.Id.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;
        }
    }

}
