public MobileDeviceInfo(MobileDeviceConfiguration configuration) { this.Identity = ((ADObjectId)configuration.Identity).ToIdentity(); this.DeviceType = configuration.DeviceType; this.DeviceModel = configuration.DeviceModel; this.DeviceAccessState = ((configuration.Status == DeviceRemoteWipeStatus.DeviceOk) ? LocalizedDescriptionAttribute.FromEnum(configuration.DeviceAccessState.GetType(), configuration.DeviceAccessState) : LocalizedDescriptionAttribute.FromEnum(configuration.Status.GetType(), configuration.Status)); this.DevicePhoneNumber_LtrSpan = (string.IsNullOrEmpty(configuration.DevicePhoneNumber) ? Strings.NotAvailable : string.Format("<span dir=\"ltr\">{0}</span>", HttpUtility.HtmlEncode(configuration.DevicePhoneNumber))); this.IsRemoteWipeSupported = configuration.IsRemoteWipeSupported; this.DeviceStatusIsOK = (configuration.Status == DeviceRemoteWipeStatus.DeviceOk); this.ClientType = configuration.ClientType.ToString(); }
public static Identity ToIdentity(this MobileDeviceConfiguration deviceInfo, string displayName) { return(new Identity(deviceInfo.Guid.ToString(), displayName)); }
public MobileDevice(MobileDeviceConfiguration mobileDevice) : base(mobileDevice) { }
public MobileDeviceRow(MobileDeviceConfiguration mobileDevice) : base(mobileDevice.ToIdentity(mobileDevice.DeviceFriendlyName), mobileDevice) { this.MobileDevice = mobileDevice; }