/// <summary>
 /// Converts a LocationTypeEnum to a string
 /// </summary>
 ///
 ///
 /// <param name="locationTypeEnum"> LocationTypeEnum to convert </param>
 ///
 ///
 /// <returns>
 ///
 ///     LocationTypeEnum.A ==> "A"
 ///     LocationTypeEnum.S ==> "S"
 /// </returns>
 private static string ConvertLocationTypeEnumToString(LocationTypeEnum locationTypeEnum)
 {
     if (locationTypeEnum == LocationTypeEnum.A)
     {
         return("A");
     }
     else
     {
         return("S");
     }
 }
示例#2
0
        /// <summary>
        /// Converts a LocationTypeEnum value to a corresponding string value
        /// </summary>
        /// <param name="enumValue">The LocationTypeEnum value to convert</param>
        /// <returns>The representative string value</returns>
        public static string ToValue(LocationTypeEnum enumValue)
        {
            switch (enumValue)
            {
            //only valid enum elements can be used
            //this is necessary to avoid errors
            case LocationTypeEnum.HAL:
            case LocationTypeEnum.ACP:
                return(stringValues[(int)enumValue]);

            //an invalid enum value was requested
            default:
                return(null);
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCharactersCharacterIdClonesJumpClone" /> class.
 /// </summary>
 /// <param name="implants">implants array (required).</param>
 /// <param name="jumpCloneId">jump_clone_id integer (required).</param>
 /// <param name="locationId">location_id integer (required).</param>
 /// <param name="locationType">location_type string (required).</param>
 /// <param name="name">name string.</param>
 public GetCharactersCharacterIdClonesJumpClone(List <int?> implants = default(List <int?>), int?jumpCloneId = default(int?), long?locationId = default(long?), LocationTypeEnum locationType = default(LocationTypeEnum), string name = default(string))
 {
     // to ensure "implants" is required (not null)
     if (implants == null)
     {
         throw new InvalidDataException("implants is a required property for GetCharactersCharacterIdClonesJumpClone and cannot be null");
     }
     else
     {
         this.Implants = implants;
     }
     // to ensure "jumpCloneId" is required (not null)
     if (jumpCloneId == null)
     {
         throw new InvalidDataException("jumpCloneId is a required property for GetCharactersCharacterIdClonesJumpClone and cannot be null");
     }
     else
     {
         this.JumpCloneId = jumpCloneId;
     }
     // to ensure "locationId" is required (not null)
     if (locationId == null)
     {
         throw new InvalidDataException("locationId is a required property for GetCharactersCharacterIdClonesJumpClone and cannot be null");
     }
     else
     {
         this.LocationId = locationId;
     }
     // to ensure "locationType" is required (not null)
     if (locationType == null)
     {
         throw new InvalidDataException("locationType is a required property for GetCharactersCharacterIdClonesJumpClone and cannot be null");
     }
     else
     {
         this.LocationType = locationType;
     }
     this.Name = name;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCharactersCharacterIdClonesJumpClone" /> class.
 /// </summary>
 /// <param name="Implants">implants array (required).</param>
 /// <param name="JumpCloneId">jump_clone_id integer (required).</param>
 /// <param name="LocationId">location_id integer (required).</param>
 /// <param name="LocationType">location_type string (required).</param>
 /// <param name="Name">name string.</param>
 public GetCharactersCharacterIdClonesJumpClone(List <int?> Implants = default(List <int?>), int?JumpCloneId = default(int?), long?LocationId = default(long?), LocationTypeEnum LocationType = default(LocationTypeEnum), string Name = default(string))
 {
     // to ensure "Implants" is required (not null)
     if (Implants == null)
     {
         throw new InvalidDataException("Implants is a required property for GetCharactersCharacterIdClonesJumpClone and cannot be null");
     }
     else
     {
         this.Implants = Implants;
     }
     // to ensure "JumpCloneId" is required (not null)
     if (JumpCloneId == null)
     {
         throw new InvalidDataException("JumpCloneId is a required property for GetCharactersCharacterIdClonesJumpClone and cannot be null");
     }
     else
     {
         this.JumpCloneId = JumpCloneId;
     }
     // to ensure "LocationId" is required (not null)
     if (LocationId == null)
     {
         throw new InvalidDataException("LocationId is a required property for GetCharactersCharacterIdClonesJumpClone and cannot be null");
     }
     else
     {
         this.LocationId = LocationId;
     }
     // to ensure "LocationType" is required (not null)
     if (LocationType == null)
     {
         throw new InvalidDataException("LocationType is a required property for GetCharactersCharacterIdClonesJumpClone and cannot be null");
     }
     else
     {
         this.LocationType = LocationType;
     }
     this.Name = Name;
 }
示例#5
0
 public void GetLocationFoundIn(out string locationName, out LocationTypeEnum locationType)
 {
     InternalGetLocationFoundIn(out  locationName, out  locationType);
 }
示例#6
0
 private void InternalGetLocationFoundIn(out string locationName, out LocationTypeEnum locationType)
 {
     DocumentInstance.GetLocationFoundIn(out  locationName, out  locationType);
 }
        public static string ToTitle(this LocationTypeEnum value)
        {
            var title = value.GetType().GetMember(value.ToString()).First().GetCustomAttribute <DisplayAttribute>().Name;

            return(title);
        }
示例#8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCharactersCharacterIdAssets200Ok" /> class.
 /// </summary>
 /// <param name="IsSingleton">is_singleton boolean (required).</param>
 /// <param name="ItemId">item_id integer (required).</param>
 /// <param name="LocationFlag">location_flag string (required).</param>
 /// <param name="LocationId">location_id integer (required).</param>
 /// <param name="LocationType">location_type string (required).</param>
 /// <param name="Quantity">quantity integer (required).</param>
 /// <param name="TypeId">type_id integer (required).</param>
 public GetCharactersCharacterIdAssets200Ok(bool?IsSingleton = default(bool?), long?ItemId = default(long?), LocationFlagEnum LocationFlag = default(LocationFlagEnum), long?LocationId = default(long?), LocationTypeEnum LocationType = default(LocationTypeEnum), int?Quantity = default(int?), int?TypeId = default(int?))
 {
     // to ensure "IsSingleton" is required (not null)
     if (IsSingleton == null)
     {
         throw new InvalidDataException("IsSingleton is a required property for GetCharactersCharacterIdAssets200Ok and cannot be null");
     }
     else
     {
         this.IsSingleton = IsSingleton;
     }
     // to ensure "ItemId" is required (not null)
     if (ItemId == null)
     {
         throw new InvalidDataException("ItemId is a required property for GetCharactersCharacterIdAssets200Ok and cannot be null");
     }
     else
     {
         this.ItemId = ItemId;
     }
     // to ensure "LocationFlag" is required (not null)
     if (LocationFlag == null)
     {
         throw new InvalidDataException("LocationFlag is a required property for GetCharactersCharacterIdAssets200Ok and cannot be null");
     }
     else
     {
         this.LocationFlag = LocationFlag;
     }
     // to ensure "LocationId" is required (not null)
     if (LocationId == null)
     {
         throw new InvalidDataException("LocationId is a required property for GetCharactersCharacterIdAssets200Ok and cannot be null");
     }
     else
     {
         this.LocationId = LocationId;
     }
     // to ensure "LocationType" is required (not null)
     if (LocationType == null)
     {
         throw new InvalidDataException("LocationType is a required property for GetCharactersCharacterIdAssets200Ok and cannot be null");
     }
     else
     {
         this.LocationType = LocationType;
     }
     // to ensure "Quantity" is required (not null)
     if (Quantity == null)
     {
         throw new InvalidDataException("Quantity is a required property for GetCharactersCharacterIdAssets200Ok and cannot be null");
     }
     else
     {
         this.Quantity = Quantity;
     }
     // to ensure "TypeId" is required (not null)
     if (TypeId == null)
     {
         throw new InvalidDataException("TypeId is a required property for GetCharactersCharacterIdAssets200Ok and cannot be null");
     }
     else
     {
         this.TypeId = TypeId;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCorporationsCorporationIdAssets200Ok" /> class.
 /// </summary>
 /// <param name="typeId">type_id integer (required).</param>
 /// <param name="quantity">quantity integer (required).</param>
 /// <param name="locationId">location_id integer (required).</param>
 /// <param name="locationType">location_type string (required).</param>
 /// <param name="itemId">item_id integer (required).</param>
 /// <param name="isSingleton">is_singleton boolean (required).</param>
 /// <param name="locationFlag">location_flag string (required).</param>
 public GetCorporationsCorporationIdAssets200Ok(int?typeId = default(int?), int?quantity = default(int?), long?locationId = default(long?), LocationTypeEnum locationType = default(LocationTypeEnum), long?itemId = default(long?), bool?isSingleton = default(bool?), LocationFlagEnum locationFlag = default(LocationFlagEnum))
 {
     // to ensure "typeId" is required (not null)
     if (typeId == null)
     {
         throw new InvalidDataException("typeId is a required property for GetCorporationsCorporationIdAssets200Ok and cannot be null");
     }
     else
     {
         this.TypeId = typeId;
     }
     // to ensure "quantity" is required (not null)
     if (quantity == null)
     {
         throw new InvalidDataException("quantity is a required property for GetCorporationsCorporationIdAssets200Ok and cannot be null");
     }
     else
     {
         this.Quantity = quantity;
     }
     // to ensure "locationId" is required (not null)
     if (locationId == null)
     {
         throw new InvalidDataException("locationId is a required property for GetCorporationsCorporationIdAssets200Ok and cannot be null");
     }
     else
     {
         this.LocationId = locationId;
     }
     // to ensure "locationType" is required (not null)
     if (locationType == null)
     {
         throw new InvalidDataException("locationType is a required property for GetCorporationsCorporationIdAssets200Ok and cannot be null");
     }
     else
     {
         this.LocationType = locationType;
     }
     // to ensure "itemId" is required (not null)
     if (itemId == null)
     {
         throw new InvalidDataException("itemId is a required property for GetCorporationsCorporationIdAssets200Ok and cannot be null");
     }
     else
     {
         this.ItemId = itemId;
     }
     // to ensure "isSingleton" is required (not null)
     if (isSingleton == null)
     {
         throw new InvalidDataException("isSingleton is a required property for GetCorporationsCorporationIdAssets200Ok and cannot be null");
     }
     else
     {
         this.IsSingleton = isSingleton;
     }
     // to ensure "locationFlag" is required (not null)
     if (locationFlag == null)
     {
         throw new InvalidDataException("locationFlag is a required property for GetCorporationsCorporationIdAssets200Ok and cannot be null");
     }
     else
     {
         this.LocationFlag = locationFlag;
     }
 }
示例#10
0
 public void GetLocationFoundIn(out string locationName, out LocationTypeEnum locationType)
 {
     InternalGetLocationFoundIn(out locationName, out locationType);
 }
示例#11
0
 private void InternalGetLocationFoundIn(out string locationName, out LocationTypeEnum locationType)
 {
     DocumentInstance.GetLocationFoundIn(out locationName, out locationType);
 }