/// <summary> /// Gets the string value for the AARGTYPEUnresponsiveDeviceActionType 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 AARGTYPEUnresponsiveDeviceActionTypeEnum.Invalid or /// out of range. /// </returns> public static string ToStringAargtypeUnresponsiveDeviceActionType(AargtypeUnresponsiveDeviceActionTypeEnum value) { switch (value) { case AargtypeUnresponsiveDeviceActionTypeEnum.Remove: return(CsAllowedValAargtypeUnresponsiveDeviceActionTypeRemove); case AargtypeUnresponsiveDeviceActionTypeEnum.VerifyThenRemoveSystemwide: return(CsAllowedValAargtypeUnresponsiveDeviceActionTypeVerifyThenRemoveSystemwide); default: return(String.Empty); } }
/// <summary> /// Executes the ReportUnresponsiveDevice action. /// </summary> /// <param name="deviceUuid">In value for the DeviceUUID action parameter.</param> /// <param name="desiredAction">In value for the DesiredAction action parameter.</param> public async Task ReportUnresponsiveDevice(String deviceUuid, AargtypeUnresponsiveDeviceActionTypeEnum desiredAction) { var loIn = new object[2]; loIn[0] = deviceUuid; loIn[1] = ZoneGroupTopologyExtensions.ToStringAargtypeUnresponsiveDeviceActionType(desiredAction); var action = new SoapAction { ArgNames = new[] { "DeviceUUID", "DesiredAction" }, Name = CsActionReportUnresponsiveDevice, ExpectedReplyCount = 0 }; await InvokeActionAsync(action, loIn); }