Ejemplo n.º 1
0
        public DeviceRegistrationRequest(Guid applicationId, LiveDevice device)
            : this()
        {
            if (null == device)
            {
                throw new ArgumentNullException("device");
            }

            ClientInfo = new DeviceRegistrationClientInfo {
                ApplicationId = applicationId, Version = "1.0"
            };
            Authentication = new DeviceRegistrationAuthentication
            {
                MemberName = device.User.DeviceId,
                Password   = device.User.DecryptedPassword
            };
        }
        public DeviceRegistrationRequest(Guid applicationId, LiveDevice device)
            : this()
        {
            if (null == device)
            {
                throw new ArgumentNullException("device");
            }

            ClientInfo = new DeviceRegistrationClientInfo { ApplicationId = applicationId, Version = "1.0" };
            Authentication = new DeviceRegistrationAuthentication
            {
                MemberName = device.User.DeviceId,
                Password = device.User.DecryptedPassword
            };
        }