Emby Developer Emby Developer
  • DEV Home
  • Documentation
  • Reference
  • Download
Search Results for

    Show / Hide Table of Contents

    Class EditableOptionsBase

    Inheritance
    System.Object
    EditableObjectBase
    EditableOptionsBase
    Implements
    IEditableObject
    Inherited Members
    EditableObjectBase.JsonSerializer
    EditableObjectBase.EditorTitle
    EditableObjectBase.EditorDescription
    EditableObjectBase.FeatureRequiresPremiere
    EditableObjectBase.TitleButton
    EditableObjectBase.CreateEditContainer()
    EditableObjectBase.CreateEditContainer(Object)
    EditableObjectBase.DeserializeFromJsonString(String, IJsonSerializer)
    EditableObjectBase.DeserializeFromJsonStream(Stream, IJsonSerializer)
    EditableObjectBase.GetChangesFromDefault()
    EditableObjectBase.ValidateOrThrow()
    EditableObjectBase.Validate()
    EditableObjectBase.GetEditorBuildOptions()
    EditableObjectBase.Validate(ValidationContext)
    EditableObjectBase.ValidateChildGroup(ValidationContext, String)
    Namespace: Emby.Web.GenericEdit
    Assembly: Emby.Web.GenericEdit.dll
    Syntax
    public abstract class EditableOptionsBase : EditableObjectBase, IEditableObject

    Methods

    ApplyOptionValues(PropertyOptionValues)

    Assigns previously collected values back onto this instance, which has to be constructed and initialized the same way the baseline they were collected against was.

    Declaration
    public PropertyOptionValues ApplyOptionValues(PropertyOptionValues optionValues)
    Parameters
    Type Name Description
    PropertyOptionValues optionValues

    The values to apply.

    Returns
    Type Description
    PropertyOptionValues

    The entries which could not be applied - see ApplyOptionValues(Object, PropertyOptionValues).

    GetOptionValues()

    Gets those values of this instance which differ from a default-constructed instance of the same type, for persisting a configuration as only its deviations from the defaults.

    Declaration
    public PropertyOptionValues GetOptionValues()
    Returns
    Type Description
    PropertyOptionValues
    Remarks

    Only applicable to types whose defaults are declared on the properties themselves. Types which receive defaults from an initialization step - the encoder and filter parameter classes, whose defaults depend on the codec or filter they are initialized with - have to use GetOptionValues(EditableOptionsBase) with an identically initialized baseline. A bare instance would differ from the real defaults, and those differences would then be persisted as though the user had chosen them, which would make the defaults impossible to change later.

    GetOptionValues(EditableOptionsBase)

    Gets those values of this instance which differ from baselineOptions.

    Declaration
    public PropertyOptionValues GetOptionValues(EditableOptionsBase baselineOptions)
    Parameters
    Type Name Description
    EditableOptionsBase baselineOptions

    An instance of this same type, constructed and initialized the way this instance was but otherwise left untouched, so that only the user's own changes are collected.

    Returns
    Type Description
    PropertyOptionValues

    Implements

    IEditableObject

    Extension Methods

    Extensions.JsonClone<T>(T, IJsonSerializer)
    SDK
    On this Page
    Back to Top Copyright 2022 © EMBY LLC. Please see our terms of use and privacy policy.