/// <summary> /// Gets the ID of the notification. /// </summary> /// <param name="typeID">The type name.</param> /// <returns>The type ID.</returns> internal static int GetID(string name) { EnsureLoaded(); SerializableNotificationRefTypesListItem type = s_notificationRefTypes.Values. FirstOrDefault(x => x.TypeCode?.Equals(name, StringComparison. InvariantCultureIgnoreCase) ?? false); return(type?.TypeID ?? 0); }
/// <summary> /// Gets the text layout. /// </summary> /// <param name="typeID">The type identifier.</param> /// <returns></returns> internal static string GetTextLayout(int typeID) { if (EveMonClient.IsDebugBuild) { EnsureInitialized(); } else { EnsureImportation(); } SerializableNotificationRefTypesListItem type = s_notificationRefTypes.FirstOrDefault(x => x.TypeID == typeID); return(type?.TextLayout ?? String.Empty); }
/// <summary> /// Gets the description of the notification type. /// </summary> /// <param name="typeID">The type ID.</param> /// <returns></returns> internal static string GetName(int typeID) { if (EveMonClient.IsDebugBuild) { EnsureInitialized(); } else { EnsureImportation(); } SerializableNotificationRefTypesListItem type = s_notificationRefTypes.FirstOrDefault(x => x.TypeID == typeID); return(type?.TypeName ?? EveMonConstants.UnknownText); }
/// <summary> /// Gets the ID of the notification. /// </summary> /// <param name="typeID">The type name.</param> /// <returns>The type ID.</returns> internal static int GetID(string name) { if (EveMonClient.IsDebugBuild) { EnsureInitialized(); } else { EnsureImportation(); } SerializableNotificationRefTypesListItem type = s_notificationRefTypes.Values.FirstOrDefault(x => x.TypeName.Equals(name, StringComparison.InvariantCultureIgnoreCase)); return(type?.TypeID ?? 0); }