public List <TargetItem> GetTargetsByState(TargetState state) { lock (this.locker) { var strState = state.ToString(); return(this.db.Table <TargetItem>().Where(t => t.State == strState).ToList()); } }
public override string ToString() { string result = ""; if (Toggles) { foreach (var state in ToggleStates) { result += state; } } else { result = TargetState.ToString(); } return(result); }
public GetDs3TargetsSpectraS3Request WithState(TargetState? state) { this._state = state; if (state != null) { this.QueryParams.Add("state", state.ToString()); } else { this.QueryParams.Remove("state"); } return this; }