public DeviceAutoBlockThreshold(ActiveSyncDeviceAutoblockThreshold threshold) { this.BehaviorType = threshold.BehaviorType; if (threshold.WhenChanged != null) { this.LastChangeTime = (ExDateTime)threshold.WhenChanged.Value.ToUniversalTime(); } else { this.LastChangeTime = ExDateTime.UtcNow; } this.BehaviorTypeIncidenceLimit = threshold.BehaviorTypeIncidenceLimit; this.BehaviorTypeIncidenceDuration = threshold.BehaviorTypeIncidenceDuration; this.DeviceBlockDuration = threshold.DeviceBlockDuration; this.AdminEmailInsert = threshold.AdminEmailInsert; }
public ActiveSyncDeviceAutoblockThresholdIdParameter(ActiveSyncDeviceAutoblockThreshold settings) : base(settings.Id) { }