public async Task <bool> AddMeasuredObject(MeasuredObject obj) { if (obj == null) { throw new Exception("Cannot add null measured Object"); } await connection.InsertAsync(obj); return(true); }
public async Task <ObservableCollection <MeasuredObject> > getAllMeasuredObjects() { var list = new ObservableCollection <MeasuredObject>(); var obj = new MeasuredObject(); obj.Id = 0; obj.Name = "Meter Stick"; obj.Measurement = 1; obj.Type = "Straight Line"; obj.Units = "SI Units"; list.Add(obj); obj.Id = 1; obj.Name = "Yard Stick"; obj.Measurement = 1; obj.Type = "Straight Line"; obj.Units = "Imperial"; list.Add(obj); return(list); }
public Task <bool> UpdateMeasuredObject(MeasuredObject comp) { throw new NotImplementedException(); }
public Task <bool> DeleteObject(MeasuredObject obj) { throw new NotImplementedException(); }
public async Task <bool> DeleteObject(MeasuredObject obj) { await connection.DeleteAsync(obj); return(true); }
public async Task <bool> AddImage(MeasuredObject obj) { await connection.UpdateAsync(obj); return(true); }