/// <summary>
        /// <para>Initializes a new instance of the <see cref="DeviceChangeIpDesktopDetails" />
        /// class.</para>
        /// </summary>
        /// <param name="deviceInfo">Device information.</param>
        public DeviceChangeIpDesktopDetails(DeviceLogInfo deviceInfo)
        {
            if (deviceInfo == null)
            {
                throw new sys.ArgumentNullException("deviceInfo");
            }

            this.DeviceInfo = deviceInfo;
        }
Exemplo n.º 2
0
        /// <summary>
        /// <para>Initializes a new instance of the <see
        /// cref="DeviceDeleteOnUnlinkSuccessDetails" /> class.</para>
        /// </summary>
        /// <param name="deviceInfo">Device information.</param>
        public DeviceDeleteOnUnlinkSuccessDetails(DeviceLogInfo deviceInfo)
        {
            if (deviceInfo == null)
            {
                throw new sys.ArgumentNullException("deviceInfo");
            }

            this.DeviceInfo = deviceInfo;
        }
Exemplo n.º 3
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="DeviceUnlinkDetails" />
        /// class.</para>
        /// </summary>
        /// <param name="deviceInfo">Device information.</param>
        /// <param name="deleteData">True if the user requested to delete data after device
        /// unlink, false otherwise.</param>
        public DeviceUnlinkDetails(DeviceLogInfo deviceInfo,
                                   bool deleteData)
        {
            if (deviceInfo == null)
            {
                throw new sys.ArgumentNullException("deviceInfo");
            }

            this.DeviceInfo = deviceInfo;
            this.DeleteData = deleteData;
        }
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="DeviceLinkSuccessDetails" />
        /// class.</para>
        /// </summary>
        /// <param name="deviceInfo">Device information.</param>
        /// <param name="appVersion">Linking app version. Might be missing due to historical
        /// data gap.</param>
        public DeviceLinkSuccessDetails(DeviceLogInfo deviceInfo,
                                        string appVersion = null)
        {
            if (deviceInfo == null)
            {
                throw new sys.ArgumentNullException("deviceInfo");
            }

            this.DeviceInfo = deviceInfo;
            this.AppVersion = appVersion;
        }
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="DeviceChangeIpWebDetails" />
        /// class.</para>
        /// </summary>
        /// <param name="userAgent">Web browser name.</param>
        /// <param name="deviceInfo">Device information. Might be missing due to historical
        /// data gap.</param>
        public DeviceChangeIpWebDetails(string userAgent,
                                        DeviceLogInfo deviceInfo = null)
        {
            if (userAgent == null)
            {
                throw new sys.ArgumentNullException("userAgent");
            }

            this.UserAgent  = userAgent;
            this.DeviceInfo = deviceInfo;
        }
Exemplo n.º 6
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="DeviceLinkFailDetails" />
        /// class.</para>
        /// </summary>
        /// <param name="deviceType">A description of the device used while user approval
        /// blocked.</param>
        /// <param name="deviceInfo">Device information. Might be missing due to historical
        /// data gap.</param>
        public DeviceLinkFailDetails(DeviceType deviceType,
                                     DeviceLogInfo deviceInfo = null)
        {
            if (deviceType == null)
            {
                throw new sys.ArgumentNullException("deviceType");
            }

            this.DeviceType = deviceType;
            this.DeviceInfo = deviceInfo;
        }
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="DeviceDeleteOnUnlinkFailDetails"
        /// /> class.</para>
        /// </summary>
        /// <param name="deviceInfo">Device information.</param>
        /// <param name="numFailures">The number of times that remote file deletion
        /// failed.</param>
        public DeviceDeleteOnUnlinkFailDetails(DeviceLogInfo deviceInfo,
                                               long numFailures)
        {
            if (deviceInfo == null)
            {
                throw new sys.ArgumentNullException("deviceInfo");
            }

            this.DeviceInfo  = deviceInfo;
            this.NumFailures = numFailures;
        }