/// <summary> /// Gets the string value for the CurrentPlayMode state var from its enumeration value. /// </summary> /// <param name="value">The enumeration value to get the string value for.</param> /// <returns>The string value for the enumeration, or string.empty if CurrentPlayModeEnum.Invalid or out of range.</returns> public static string ToStringCurrentPlayMode(CurrentPlayModeEnum value) { switch (value) { case CurrentPlayModeEnum.Normal: return(CsAllowedValCurrentPlayModeNormal); case CurrentPlayModeEnum.Repeatall: return(CsAllowedValCurrentPlayModeRepeatall); case CurrentPlayModeEnum.Shufflenorepeat: return(CsAllowedValCurrentPlayModeShufflenorepeat); case CurrentPlayModeEnum.Shuffle: return(CsAllowedValCurrentPlayModeShuffle); default: return(String.Empty); } }
/// <summary> /// Executes the SetPlayMode action. /// </summary> /// <param name="parent">The Device object to execute the request on</param> /// <param name="newPlayMode">In value for the NewPlayMode action parameter. Default value of NORMAL.</param> public void SetPlayMode(SonyAPI_Lib.SonyDevice parent, CurrentPlayModeEnum newPlayMode) { // object[] loIn = new object[2]; // loIn[0] = instanceID; // loIn[1] = ToStringCurrentPlayMode(newPlayMode); // InvokeAction(csAction_SetPlayMode, loIn); }