namespace RGB.NET.Core; /// /// Offers some extensions for easier use of . /// public static class CustomUpdateDataExtension { /// /// Sets the -Parameter to the given value. /// /// The update-data to modify. /// The value to set. /// The modified update-data. public static CustomUpdateData FlushLeds(this CustomUpdateData customUpdateData, bool value = true) { customUpdateData[CustomUpdateDataIndex.FLUSH_LEDS] = value; return customUpdateData; } /// /// Sets the -Parameter to the given value. /// /// The update-data to modify. /// The value to set. /// The modified update-data. public static CustomUpdateData Render(this CustomUpdateData customUpdateData, bool value = true) { customUpdateData[CustomUpdateDataIndex.RENDER] = value; return customUpdateData; } /// /// Sets the -Parameter to the given value. /// /// The update-data to modify. /// The value to set. /// The modified update-data. public static CustomUpdateData UpdateDevices(this CustomUpdateData customUpdateData, bool value = true) { customUpdateData[CustomUpdateDataIndex.UPDATE_DEVICES] = value; return customUpdateData; } }