/// <summary> /// Deprecated Method for adding a new object to the Hotkeys EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToHotkeys(Hotkey hotkey) { base.AddObject("Hotkeys", hotkey); }
/// <summary> /// Create a new Hotkey object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="characterId">Initial value of the CharacterId property.</param> /// <param name="index">Initial value of the Index property.</param> /// <param name="key">Initial value of the Key property.</param> /// <param name="modifier">Initial value of the Modifier property.</param> public static Hotkey CreateHotkey(global::System.Int32 id, global::System.Int32 characterId, global::System.Int32 index, global::System.Int32 key, global::System.Int32 modifier) { Hotkey hotkey = new Hotkey(); hotkey.Id = id; hotkey.CharacterId = characterId; hotkey.Index = index; hotkey.Key = key; hotkey.Modifier = modifier; return hotkey; }